| 1 | /* |
| 2 | * Copyright © 2013 Keith Packard <[email protected]> |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, but |
| 10 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License along |
| 15 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 16 | * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
| 17 | */ |
| 18 | |
| 19 | #ifndef _AO_EDITALTOS_H_ |
| 20 | #define _AO_EDITALTOS_H_cxx . . $ `ao-tools/lib/ao-editaltos.h:20:9`! |
| 21 | |
| 22 | #include <stdint.h> |
| 23 | #include <stdbool.h> |
| 24 | #include "ao-hex.h"cxx . . $ `<file>/ao-tools/lib/ao-hex.h`/ |
| 25 | |
| 26 | extern struct ao_symcxx . . $ ao_sym# ao_symbolscxx . . $ ao_symbols.[]; |
| 27 | extern int ao_num_symbolscxx . . $ ao_num_symbols.; |
| 28 | |
| 29 | #define AO_USB_DESC_DEVICEcxx . . $ `ao-tools/lib/ao-editaltos.h:29:9`! 1 |
| 30 | #define AO_USB_DESC_STRINGcxx . . $ `ao-tools/lib/ao-editaltos.h:30:9`! 3 |
| 31 | |
| 32 | #define AO_ROMCONFIG_VERSION_INDEXcxx . . $ `ao-tools/lib/ao-editaltos.h:32:9`! 0 |
| 33 | #define AO_ROMCONFIG_CHECK_INDEXcxx . . $ `ao-tools/lib/ao-editaltos.h:33:9`! 1 |
| 34 | #define AO_SERIAL_NUMBER_INDEXcxx . . $ `ao-tools/lib/ao-editaltos.h:34:9`! 2 |
| 35 | #define AO_RADIO_CAL_INDEXcxx . . $ `ao-tools/lib/ao-editaltos.h:35:9`! 3 |
| 36 | #define AO_USB_DESCRIPTORS_INDEXcxx . . $ `ao-tools/lib/ao-editaltos.h:36:9`! 4 |
| 37 | |
| 38 | #define AO_ROMCONFIG_VERSIONcxx . . $ `ao-tools/lib/ao-editaltos.h:38:9`! (ao_symbols[AO_ROMCONFIG_VERSION_INDEX].addr) |
| 39 | #define AO_ROMCONFIG_CHECKcxx . . $ `ao-tools/lib/ao-editaltos.h:39:9`! (ao_symbols[AO_ROMCONFIG_CHECK_INDEX].addr) |
| 40 | #define AO_SERIAL_NUMBERcxx . . $ `ao-tools/lib/ao-editaltos.h:40:9`! (ao_symbols[AO_SERIAL_NUMBER_INDEXcxx . . $ `ao-tools/lib/ao-editaltos.h:34:9`!].addr) |
| 41 | #define AO_RADIO_CALcxx . . $ `ao-tools/lib/ao-editaltos.h:41:9`! (ao_symbols[AO_RADIO_CAL_INDEXcxx . . $ `ao-tools/lib/ao-editaltos.h:35:9`!].addr) |
| 42 | #define AO_USB_DESCRIPTORScxx . . $ `ao-tools/lib/ao-editaltos.h:42:9`! (ao_symbols[AO_USB_DESCRIPTORS_INDEXcxx . . $ `ao-tools/lib/ao-editaltos.h:36:9`!].addr) |
| 43 | |
| 44 | struct ao_editaltos_funcscxx . . $ ao_editaltos_funcs# { |
| 45 | uint16_tcxx . . $ uint16_t# (*get_uint16cxx . . $ ao_editaltos_funcs#get_uint16.)(void *closure, uint32_tcxx . . $ uint32_t# addr); |
| 46 | uint32_tcxx . . $ uint32_t# (*get_uint32cxx . . $ ao_editaltos_funcs#get_uint32.)(void *closure, uint32_tcxx . . $ uint32_t# addr); |
| 47 | }; |
| 48 | |
| 49 | struct ao_usb_idcxx . . $ ao_usb_id# { |
| 50 | uint16_tcxx . . $ uint16_t# vidcxx . . $ ao_usb_id#vid.; |
| 51 | uint16_tcxx . . $ uint16_t# pidcxx . . $ ao_usb_id#pid.; |
| 52 | }; |
| 53 | |
| 54 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 55 | ao_editaltos_find_symbolscxx . . $ ao_editaltos_find_symbols(ecc4963d7a80c5fd).(struct ao_symcxx . . $ ao_sym# *file_symbols, int num_file_symbols, |
| 56 | struct ao_symcxx . . $ ao_sym# *symbols, int num_symbols); |
| 57 | |
| 58 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 59 | ao_editaltoscxx . . $ ao_editaltos(c9115ea4824dd460).(struct ao_hex_imagecxx . . $ ao_hex_image# *image, |
| 60 | uint16_tcxx . . $ uint16_t# serial, |
| 61 | uint32_tcxx . . $ uint32_t# radio_cal); |
| 62 | |
| 63 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! |
| 64 | ao_heximage_usb_idcxx . . $ ao_heximage_usb_id(70bc3b7043a8b44e).(struct ao_hex_imagecxx . . $ ao_hex_image# *image, struct ao_usb_idcxx . . $ ao_usb_id# *id); |
| 65 | |
| 66 | uint16_tcxx . . $ uint16_t# * |
| 67 | ao_heximage_usb_productcxx . . $ ao_heximage_usb_product(75709ad4fecca09b).(struct ao_hex_imagecxx . . $ ao_hex_image# *image); |
| 68 | |
| 69 | #endif /* _AO_EDITALTOS_H_ */ |