Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (C) 2007, David Kilroy
0003  *
0004  * The contents of this file are subject to the Mozilla Public License
0005  * Version 1.1 (the "License"); you may not use this file except in
0006  * compliance with the License. You may obtain a copy of the License
0007  * at http://www.mozilla.org/MPL/
0008  *
0009  * Software distributed under the License is distributed on an "AS IS"
0010  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
0011  * the License for the specific language governing rights and
0012  * limitations under the License.
0013  *
0014  * Alternatively, the contents of this file may be used under the
0015  * terms of the GNU General Public License version 2 (the "GPL"), in
0016  * which case the provisions of the GPL are applicable instead of the
0017  * above.  If you wish to allow the use of your version of this file
0018  * only under the terms of the GPL and not to allow others to use your
0019  * version of this file under the MPL, indicate your decision by
0020  * deleting the provisions above and replace them with the notice and
0021  * other provisions required by the GPL.  If you do not delete the
0022  * provisions above, a recipient may use your version of this file
0023  * under either the MPL or the GPL.
0024  */
0025 #ifndef _HERMES_DLD_H
0026 #define _HERMES_DLD_H
0027 
0028 #include "hermes.h"
0029 
0030 int hermesi_program_init(struct hermes *hw, u32 offset);
0031 int hermesi_program_end(struct hermes *hw);
0032 int hermes_program(struct hermes *hw, const char *first_block, const void *end);
0033 
0034 int hermes_read_pda(struct hermes *hw,
0035             __le16 *pda,
0036             u32 pda_addr,
0037             u16 pda_len,
0038             int use_eeprom);
0039 int hermes_apply_pda(struct hermes *hw,
0040              const char *first_pdr,
0041              const void *pdr_end,
0042              const __le16 *pda,
0043              const void *pda_end);
0044 int hermes_apply_pda_with_defaults(struct hermes *hw,
0045                    const char *first_pdr,
0046                    const void *pdr_end,
0047                    const __le16 *pda,
0048                    const void *pda_end);
0049 
0050 size_t hermes_blocks_length(const char *first_block, const void *end);
0051 
0052 #endif /* _HERMES_DLD_H */