1 #include <inttypes.h> 2 typedef uint32_t mpers_ptr_t; 3 typedef 4 struct { 5 union { 6 char ifrn_name[16]; 7 } ifr_ifrn; 8 union { 9 struct { 10 uint16_t sa_family; 11 char sa_data[14]; 12 } ATTRIBUTE_PACKED ifru_addr; 13 struct { 14 uint16_t sa_family; 15 char sa_data[14]; 16 } ATTRIBUTE_PACKED ifru_dstaddr; 17 struct { 18 uint16_t sa_family; 19 char sa_data[14]; 20 } ATTRIBUTE_PACKED ifru_broadaddr; 21 struct { 22 uint16_t sa_family; 23 char sa_data[14]; 24 } ATTRIBUTE_PACKED ifru_netmask; 25 struct { 26 uint16_t sa_family; 27 char sa_data[14]; 28 } ATTRIBUTE_PACKED ifru_hwaddr; 29 int16_t ifru_flags; 30 int32_t ifru_ivalue; 31 int32_t ifru_mtu; 32 struct { 33 uint32_t mem_start; 34 uint32_t mem_end; 35 uint16_t base_addr; 36 unsigned char irq; 37 unsigned char dma; 38 unsigned char port; 39 unsigned char mpers_end_filler_1[3]; 40 } ATTRIBUTE_PACKED ifru_map; 41 char ifru_slave[16]; 42 char ifru_newname[16]; 43 mpers_ptr_t ifru_data; 44 } ifr_ifru; 45 } ATTRIBUTE_PACKED mx32_struct_ifreq; 46 #define MPERS_mx32_struct_ifreq mx32_struct_ifreq 47