acrestyp.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. /******************************************************************************
  2. *
  3. * Name: acrestyp.h - Defines, types, and structures for resource descriptors
  4. *
  5. *****************************************************************************/
  6. /*
  7. * Copyright (C) 2000 - 2011, Intel Corp.
  8. * All rights reserved.
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. * 1. Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions, and the following disclaimer,
  15. * without modification.
  16. * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  17. * substantially similar to the "NO WARRANTY" disclaimer below
  18. * ("Disclaimer") and any redistribution must be conditioned upon
  19. * including a substantially similar Disclaimer requirement for further
  20. * binary redistribution.
  21. * 3. Neither the names of the above-listed copyright holders nor the names
  22. * of any contributors may be used to endorse or promote products derived
  23. * from this software without specific prior written permission.
  24. *
  25. * Alternatively, this software may be distributed under the terms of the
  26. * GNU General Public License ("GPL") version 2 as published by the Free
  27. * Software Foundation.
  28. *
  29. * NO WARRANTY
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  31. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  32. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
  33. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  34. * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  35. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  36. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  38. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  39. * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  40. * POSSIBILITY OF SUCH DAMAGES.
  41. */
  42. #ifndef __ACRESTYP_H__
  43. #define __ACRESTYP_H__
  44. /*
  45. * Definitions for Resource Attributes
  46. */
  47. typedef u16 acpi_rs_length; /* Resource Length field is fixed at 16 bits */
  48. typedef u32 acpi_rsdesc_size; /* Max Resource Descriptor size is (Length+3) = (64_k-1)+3 */
  49. /*
  50. * Memory Attributes
  51. */
  52. #define ACPI_READ_ONLY_MEMORY (u8) 0x00
  53. #define ACPI_READ_WRITE_MEMORY (u8) 0x01
  54. #define ACPI_NON_CACHEABLE_MEMORY (u8) 0x00
  55. #define ACPI_CACHABLE_MEMORY (u8) 0x01
  56. #define ACPI_WRITE_COMBINING_MEMORY (u8) 0x02
  57. #define ACPI_PREFETCHABLE_MEMORY (u8) 0x03
  58. /*! [Begin] no source code translation */
  59. /*
  60. * IO Attributes
  61. * The ISA IO ranges are: n000-n0FFh, n400-n4FFh, n800-n8FFh, nC00-nCFFh.
  62. * The non-ISA IO ranges are: n100-n3FFh, n500-n7FFh, n900-nBFFh, nCD0-nFFFh.
  63. */
  64. /*! [End] no source code translation !*/
  65. #define ACPI_NON_ISA_ONLY_RANGES (u8) 0x01
  66. #define ACPI_ISA_ONLY_RANGES (u8) 0x02
  67. #define ACPI_ENTIRE_RANGE (ACPI_NON_ISA_ONLY_RANGES | ACPI_ISA_ONLY_RANGES)
  68. /* Type of translation - 1=Sparse, 0=Dense */
  69. #define ACPI_SPARSE_TRANSLATION (u8) 0x01
  70. /*
  71. * IO Port Descriptor Decode
  72. */
  73. #define ACPI_DECODE_10 (u8) 0x00 /* 10-bit IO address decode */
  74. #define ACPI_DECODE_16 (u8) 0x01 /* 16-bit IO address decode */
  75. /*
  76. * Interrupt attributes - used in multiple descriptors
  77. */
  78. /* Triggering */
  79. #define ACPI_LEVEL_SENSITIVE (u8) 0x00
  80. #define ACPI_EDGE_SENSITIVE (u8) 0x01
  81. /* Polarity */
  82. #define ACPI_ACTIVE_HIGH (u8) 0x00
  83. #define ACPI_ACTIVE_LOW (u8) 0x01
  84. #define ACPI_ACTIVE_BOTH (u8) 0x02
  85. /* Sharing */
  86. #define ACPI_EXCLUSIVE (u8) 0x00
  87. #define ACPI_SHARED (u8) 0x01
  88. #define ACPI_EXCLUSIVE_AND_WAKE (u8) 0x02
  89. #define ACPI_SHARED_AND_WAKE (u8) 0x03
  90. /*
  91. * DMA Attributes
  92. */
  93. #define ACPI_COMPATIBILITY (u8) 0x00
  94. #define ACPI_TYPE_A (u8) 0x01
  95. #define ACPI_TYPE_B (u8) 0x02
  96. #define ACPI_TYPE_F (u8) 0x03
  97. #define ACPI_NOT_BUS_MASTER (u8) 0x00
  98. #define ACPI_BUS_MASTER (u8) 0x01
  99. #define ACPI_TRANSFER_8 (u8) 0x00
  100. #define ACPI_TRANSFER_8_16 (u8) 0x01
  101. #define ACPI_TRANSFER_16 (u8) 0x02
  102. /*
  103. * Start Dependent Functions Priority definitions
  104. */
  105. #define ACPI_GOOD_CONFIGURATION (u8) 0x00
  106. #define ACPI_ACCEPTABLE_CONFIGURATION (u8) 0x01
  107. #define ACPI_SUB_OPTIMAL_CONFIGURATION (u8) 0x02
  108. /*
  109. * 16, 32 and 64-bit Address Descriptor resource types
  110. */
  111. #define ACPI_MEMORY_RANGE (u8) 0x00
  112. #define ACPI_IO_RANGE (u8) 0x01
  113. #define ACPI_BUS_NUMBER_RANGE (u8) 0x02
  114. #define ACPI_ADDRESS_NOT_FIXED (u8) 0x00
  115. #define ACPI_ADDRESS_FIXED (u8) 0x01
  116. #define ACPI_POS_DECODE (u8) 0x00
  117. #define ACPI_SUB_DECODE (u8) 0x01
  118. /* Producer/Consumer */
  119. #define ACPI_PRODUCER (u8) 0x00
  120. #define ACPI_CONSUMER (u8) 0x01
  121. /*
  122. * If possible, pack the following structures to byte alignment
  123. */
  124. #ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED
  125. #pragma pack(1)
  126. #endif
  127. /* UUID data structures for use in vendor-defined resource descriptors */
  128. struct acpi_uuid {
  129. u8 data[ACPI_UUID_LENGTH];
  130. };
  131. struct acpi_vendor_uuid {
  132. u8 subtype;
  133. u8 data[ACPI_UUID_LENGTH];
  134. };
  135. /*
  136. * Structures used to describe device resources
  137. */
  138. struct acpi_resource_irq {
  139. u8 descriptor_length;
  140. u8 triggering;
  141. u8 polarity;
  142. u8 sharable;
  143. u8 interrupt_count;
  144. u8 interrupts[1];
  145. };
  146. struct acpi_resource_dma {
  147. u8 type;
  148. u8 bus_master;
  149. u8 transfer;
  150. u8 channel_count;
  151. u8 channels[1];
  152. };
  153. struct acpi_resource_start_dependent {
  154. u8 descriptor_length;
  155. u8 compatibility_priority;
  156. u8 performance_robustness;
  157. };
  158. /*
  159. * The END_DEPENDENT_FUNCTIONS_RESOURCE struct is not
  160. * needed because it has no fields
  161. */
  162. struct acpi_resource_io {
  163. u8 io_decode;
  164. u8 alignment;
  165. u8 address_length;
  166. u16 minimum;
  167. u16 maximum;
  168. };
  169. struct acpi_resource_fixed_io {
  170. u16 address;
  171. u8 address_length;
  172. };
  173. struct acpi_resource_fixed_dma {
  174. u16 request_lines;
  175. u16 channels;
  176. u8 width;
  177. };
  178. /* Values for Width field above */
  179. #define ACPI_DMA_WIDTH8 0
  180. #define ACPI_DMA_WIDTH16 1
  181. #define ACPI_DMA_WIDTH32 2
  182. #define ACPI_DMA_WIDTH64 3
  183. #define ACPI_DMA_WIDTH128 4
  184. #define ACPI_DMA_WIDTH256 5
  185. struct acpi_resource_vendor {
  186. u16 byte_length;
  187. u8 byte_data[1];
  188. };
  189. /* Vendor resource with UUID info (introduced in ACPI 3.0) */
  190. struct acpi_resource_vendor_typed {
  191. u16 byte_length;
  192. u8 uuid_subtype;
  193. u8 uuid[ACPI_UUID_LENGTH];
  194. u8 byte_data[1];
  195. };
  196. struct acpi_resource_end_tag {
  197. u8 checksum;
  198. };
  199. struct acpi_resource_memory24 {
  200. u8 write_protect;
  201. u16 minimum;
  202. u16 maximum;
  203. u16 alignment;
  204. u16 address_length;
  205. };
  206. struct acpi_resource_memory32 {
  207. u8 write_protect;
  208. u32 minimum;
  209. u32 maximum;
  210. u32 alignment;
  211. u32 address_length;
  212. };
  213. struct acpi_resource_fixed_memory32 {
  214. u8 write_protect;
  215. u32 address;
  216. u32 address_length;
  217. };
  218. struct acpi_memory_attribute {
  219. u8 write_protect;
  220. u8 caching;
  221. u8 range_type;
  222. u8 translation;
  223. };
  224. struct acpi_io_attribute {
  225. u8 range_type;
  226. u8 translation;
  227. u8 translation_type;
  228. u8 reserved1;
  229. };
  230. union acpi_resource_attribute {
  231. struct acpi_memory_attribute mem;
  232. struct acpi_io_attribute io;
  233. /* Used for the *word_space macros */
  234. u8 type_specific;
  235. };
  236. struct acpi_resource_source {
  237. u8 index;
  238. u16 string_length;
  239. char *string_ptr;
  240. };
  241. /* Fields common to all address descriptors, 16/32/64 bit */
  242. #define ACPI_RESOURCE_ADDRESS_COMMON \
  243. u8 resource_type; \
  244. u8 producer_consumer; \
  245. u8 decode; \
  246. u8 min_address_fixed; \
  247. u8 max_address_fixed; \
  248. union acpi_resource_attribute info;
  249. struct acpi_resource_address {
  250. ACPI_RESOURCE_ADDRESS_COMMON};
  251. struct acpi_resource_address16 {
  252. ACPI_RESOURCE_ADDRESS_COMMON u16 granularity;
  253. u16 minimum;
  254. u16 maximum;
  255. u16 translation_offset;
  256. u16 address_length;
  257. struct acpi_resource_source resource_source;
  258. };
  259. struct acpi_resource_address32 {
  260. ACPI_RESOURCE_ADDRESS_COMMON u32 granularity;
  261. u32 minimum;
  262. u32 maximum;
  263. u32 translation_offset;
  264. u32 address_length;
  265. struct acpi_resource_source resource_source;
  266. };
  267. struct acpi_resource_address64 {
  268. ACPI_RESOURCE_ADDRESS_COMMON u64 granularity;
  269. u64 minimum;
  270. u64 maximum;
  271. u64 translation_offset;
  272. u64 address_length;
  273. struct acpi_resource_source resource_source;
  274. };
  275. struct acpi_resource_extended_address64 {
  276. ACPI_RESOURCE_ADDRESS_COMMON u8 revision_iD;
  277. u64 granularity;
  278. u64 minimum;
  279. u64 maximum;
  280. u64 translation_offset;
  281. u64 address_length;
  282. u64 type_specific;
  283. };
  284. struct acpi_resource_extended_irq {
  285. u8 producer_consumer;
  286. u8 triggering;
  287. u8 polarity;
  288. u8 sharable;
  289. u8 interrupt_count;
  290. struct acpi_resource_source resource_source;
  291. u32 interrupts[1];
  292. };
  293. struct acpi_resource_generic_register {
  294. u8 space_id;
  295. u8 bit_width;
  296. u8 bit_offset;
  297. u8 access_size;
  298. u64 address;
  299. };
  300. struct acpi_resource_gpio {
  301. u8 revision_id;
  302. u8 connection_type;
  303. u8 producer_consumer; /* For values, see Producer/Consumer above */
  304. u8 pin_config;
  305. u8 sharable; /* For values, see Interrupt Attributes above */
  306. u8 io_restriction;
  307. u8 triggering; /* For values, see Interrupt Attributes above */
  308. u8 polarity; /* For values, see Interrupt Attributes above */
  309. u16 drive_strength;
  310. u16 debounce_timeout;
  311. u16 pin_table_length;
  312. u16 vendor_length;
  313. struct acpi_resource_source resource_source;
  314. u16 *pin_table;
  315. u8 *vendor_data;
  316. };
  317. /* Values for GPIO connection_type field above */
  318. #define ACPI_RESOURCE_GPIO_TYPE_INT 0
  319. #define ACPI_RESOURCE_GPIO_TYPE_IO 1
  320. /* Values for pin_config field above */
  321. #define ACPI_PIN_CONFIG_DEFAULT 0
  322. #define ACPI_PIN_CONFIG_PULLUP 1
  323. #define ACPI_PIN_CONFIG_PULLDOWN 2
  324. #define ACPI_PIN_CONFIG_NOPULL 3
  325. /* Values for io_restriction field above */
  326. #define ACPI_IO_RESTRICT_NONE 0
  327. #define ACPI_IO_RESTRICT_INPUT 1
  328. #define ACPI_IO_RESTRICT_OUTPUT 2
  329. #define ACPI_IO_RESTRICT_NONE_PRESERVE 3
  330. /* Common structure for I2C, SPI, and UART serial descriptors */
  331. #define ACPI_RESOURCE_SERIAL_COMMON \
  332. u8 revision_id; \
  333. u8 type; \
  334. u8 producer_consumer; /* For values, see Producer/Consumer above */\
  335. u8 slave_mode; \
  336. u8 type_revision_id; \
  337. u16 type_data_length; \
  338. u16 vendor_length; \
  339. struct acpi_resource_source resource_source; \
  340. u8 *vendor_data;
  341. struct acpi_resource_common_serialbus {
  342. ACPI_RESOURCE_SERIAL_COMMON};
  343. /* Values for the Type field above */
  344. #define ACPI_RESOURCE_SERIAL_TYPE_I2C 1
  345. #define ACPI_RESOURCE_SERIAL_TYPE_SPI 2
  346. #define ACPI_RESOURCE_SERIAL_TYPE_UART 3
  347. /* Values for slave_mode field above */
  348. #define ACPI_CONTROLLER_INITIATED 0
  349. #define ACPI_DEVICE_INITIATED 1
  350. struct acpi_resource_i2c_serialbus {
  351. ACPI_RESOURCE_SERIAL_COMMON u8 access_mode;
  352. u16 slave_address;
  353. u32 connection_speed;
  354. };
  355. /* Values for access_mode field above */
  356. #define ACPI_I2C_7BIT_MODE 0
  357. #define ACPI_I2C_10BIT_MODE 1
  358. struct acpi_resource_spi_serialbus {
  359. ACPI_RESOURCE_SERIAL_COMMON u8 wire_mode;
  360. u8 device_polarity;
  361. u8 data_bit_length;
  362. u8 clock_phase;
  363. u8 clock_polarity;
  364. u16 device_selection;
  365. u32 connection_speed;
  366. };
  367. /* Values for wire_mode field above */
  368. #define ACPI_SPI_4WIRE_MODE 0
  369. #define ACPI_SPI_3WIRE_MODE 1
  370. /* Values for device_polarity field above */
  371. #define ACPI_SPI_ACTIVE_LOW 0
  372. #define ACPI_SPI_ACTIVE_HIGH 1
  373. /* Values for clock_phase field above */
  374. #define ACPI_SPI_FIRST_PHASE 0
  375. #define ACPI_SPI_SECOND_PHASE 1
  376. /* Values for clock_polarity field above */
  377. #define ACPI_SPI_START_LOW 0
  378. #define ACPI_SPI_START_HIGH 1
  379. struct acpi_resource_uart_serialbus {
  380. ACPI_RESOURCE_SERIAL_COMMON u8 endian;
  381. u8 data_bits;
  382. u8 stop_bits;
  383. u8 flow_control;
  384. u8 parity;
  385. u8 lines_enabled;
  386. u16 rx_fifo_size;
  387. u16 tx_fifo_size;
  388. u32 default_baud_rate;
  389. };
  390. /* Values for Endian field above */
  391. #define ACPI_UART_LITTLE_ENDIAN 0
  392. #define ACPI_UART_BIG_ENDIAN 1
  393. /* Values for data_bits field above */
  394. #define ACPI_UART_5_DATA_BITS 0
  395. #define ACPI_UART_6_DATA_BITS 1
  396. #define ACPI_UART_7_DATA_BITS 2
  397. #define ACPI_UART_8_DATA_BITS 3
  398. #define ACPI_UART_9_DATA_BITS 4
  399. /* Values for stop_bits field above */
  400. #define ACPI_UART_NO_STOP_BITS 0
  401. #define ACPI_UART_1_STOP_BIT 1
  402. #define ACPI_UART_1P5_STOP_BITS 2
  403. #define ACPI_UART_2_STOP_BITS 3
  404. /* Values for flow_control field above */
  405. #define ACPI_UART_FLOW_CONTROL_NONE 0
  406. #define ACPI_UART_FLOW_CONTROL_HW 1
  407. #define ACPI_UART_FLOW_CONTROL_XON_XOFF 2
  408. /* Values for Parity field above */
  409. #define ACPI_UART_PARITY_NONE 0
  410. #define ACPI_UART_PARITY_EVEN 1
  411. #define ACPI_UART_PARITY_ODD 2
  412. #define ACPI_UART_PARITY_MARK 3
  413. #define ACPI_UART_PARITY_SPACE 4
  414. /* Values for lines_enabled bitfield above */
  415. #define ACPI_UART_CARRIER_DETECT (1<<2)
  416. #define ACPI_UART_RING_INDICATOR (1<<3)
  417. #define ACPI_UART_DATA_SET_READY (1<<4)
  418. #define ACPI_UART_DATA_TERMINAL_READY (1<<5)
  419. #define ACPI_UART_CLEAR_TO_SEND (1<<6)
  420. #define ACPI_UART_REQUEST_TO_SEND (1<<7)
  421. /* ACPI_RESOURCE_TYPEs */
  422. #define ACPI_RESOURCE_TYPE_IRQ 0
  423. #define ACPI_RESOURCE_TYPE_DMA 1
  424. #define ACPI_RESOURCE_TYPE_START_DEPENDENT 2
  425. #define ACPI_RESOURCE_TYPE_END_DEPENDENT 3
  426. #define ACPI_RESOURCE_TYPE_IO 4
  427. #define ACPI_RESOURCE_TYPE_FIXED_IO 5
  428. #define ACPI_RESOURCE_TYPE_VENDOR 6
  429. #define ACPI_RESOURCE_TYPE_END_TAG 7
  430. #define ACPI_RESOURCE_TYPE_MEMORY24 8
  431. #define ACPI_RESOURCE_TYPE_MEMORY32 9
  432. #define ACPI_RESOURCE_TYPE_FIXED_MEMORY32 10
  433. #define ACPI_RESOURCE_TYPE_ADDRESS16 11
  434. #define ACPI_RESOURCE_TYPE_ADDRESS32 12
  435. #define ACPI_RESOURCE_TYPE_ADDRESS64 13
  436. #define ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 14 /* ACPI 3.0 */
  437. #define ACPI_RESOURCE_TYPE_EXTENDED_IRQ 15
  438. #define ACPI_RESOURCE_TYPE_GENERIC_REGISTER 16
  439. #define ACPI_RESOURCE_TYPE_GPIO 17 /* ACPI 5.0 */
  440. #define ACPI_RESOURCE_TYPE_FIXED_DMA 18 /* ACPI 5.0 */
  441. #define ACPI_RESOURCE_TYPE_SERIAL_BUS 19 /* ACPI 5.0 */
  442. #define ACPI_RESOURCE_TYPE_MAX 19
  443. /* Master union for resource descriptors */
  444. union acpi_resource_data {
  445. struct acpi_resource_irq irq;
  446. struct acpi_resource_dma dma;
  447. struct acpi_resource_start_dependent start_dpf;
  448. struct acpi_resource_io io;
  449. struct acpi_resource_fixed_io fixed_io;
  450. struct acpi_resource_fixed_dma fixed_dma;
  451. struct acpi_resource_vendor vendor;
  452. struct acpi_resource_vendor_typed vendor_typed;
  453. struct acpi_resource_end_tag end_tag;
  454. struct acpi_resource_memory24 memory24;
  455. struct acpi_resource_memory32 memory32;
  456. struct acpi_resource_fixed_memory32 fixed_memory32;
  457. struct acpi_resource_address16 address16;
  458. struct acpi_resource_address32 address32;
  459. struct acpi_resource_address64 address64;
  460. struct acpi_resource_extended_address64 ext_address64;
  461. struct acpi_resource_extended_irq extended_irq;
  462. struct acpi_resource_generic_register generic_reg;
  463. struct acpi_resource_gpio gpio;
  464. struct acpi_resource_i2c_serialbus i2c_serial_bus;
  465. struct acpi_resource_spi_serialbus spi_serial_bus;
  466. struct acpi_resource_uart_serialbus uart_serial_bus;
  467. struct acpi_resource_common_serialbus common_serial_bus;
  468. /* Common fields */
  469. struct acpi_resource_address address; /* Common 16/32/64 address fields */
  470. };
  471. /* Common resource header */
  472. struct acpi_resource {
  473. u32 type;
  474. u32 length;
  475. union acpi_resource_data data;
  476. };
  477. /* restore default alignment */
  478. #pragma pack()
  479. #define ACPI_RS_SIZE_NO_DATA 8 /* Id + Length fields */
  480. #define ACPI_RS_SIZE_MIN (u32) ACPI_ROUND_UP_TO_NATIVE_WORD (12)
  481. #define ACPI_RS_SIZE(type) (u32) (ACPI_RS_SIZE_NO_DATA + sizeof (type))
  482. #define ACPI_NEXT_RESOURCE(res) (struct acpi_resource *)((u8 *) res + res->length)
  483. struct acpi_pci_routing_table {
  484. u32 length;
  485. u32 pin;
  486. u64 address; /* here for 64-bit alignment */
  487. u32 source_index;
  488. char source[4]; /* pad to 64 bits so sizeof() works in all cases */
  489. };
  490. #endif /* __ACRESTYP_H__ */