Changeset 2e672fd in mainline for genarch/ofw.h
- Timestamp:
- 2006-07-10T20:48:40Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- daab5145
- Parents:
- 822b64e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/ofw.h
r822b64e r2e672fd 37 37 #define MEMMAP_MAX_RECORDS 32 38 38 39 #define MAX_OFW_ARGS 12 40 41 typedef unsigned long ofw_arg_t; 42 typedef unsigned int ihandle; 43 typedef unsigned int phandle; 44 45 /** OpenFirmware command structure 46 * 47 */ 48 typedef struct { 49 const char *service; /**< Command name */ 50 unsigned long nargs; /**< Number of in arguments */ 51 unsigned long nret; /**< Number of out arguments */ 52 ofw_arg_t args[MAX_OFW_ARGS]; /**< List of arguments */ 53 } ofw_args_t; 54 39 55 typedef struct { 40 56 void *start; … … 49 65 50 66 typedef struct { 51 void *addr;67 uint32_t addr; 52 68 unsigned int width; 53 69 unsigned int height; … … 57 73 58 74 typedef struct { 59 void *addr;75 uint32_t addr; 60 76 unsigned int size; 61 77 } keyboard_t; … … 73 89 } pci_reg_t; 74 90 75 typedef unsigned long ofw_arg_t; 76 typedef unsigned int ihandle; 77 typedef unsigned int phandle; 91 extern uintptr_t ofw_cif; 78 92 79 93 extern phandle ofw_aliases; … … 85 99 extern phandle ofw_find_device(const char *name); 86 100 101 extern int ofw(ofw_args_t *arg); 87 102 extern void *ofw_translate(const void *virt); 103 extern int ofw_translate_failed(ofw_arg_t flag); 104 extern void *ofw_claim(const void *virt, const int len); 88 105 extern int ofw_map(const void *phys, const void *virt, const int size, const int mode); 89 106 extern int ofw_memmap(memmap_t *map);
Note:
See TracChangeset
for help on using the changeset viewer.