io.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ALPHA_IO_H
  3. #define __ALPHA_IO_H
  4. #ifdef __KERNEL__
  5. #include <linux/kernel.h>
  6. #include <linux/mm.h>
  7. #include <asm/compiler.h>
  8. #include <asm/machvec.h>
  9. #include <asm/hwrpb.h>
  10. /* The generic header contains only prototypes. Including it ensures that
  11. the implementation we have here matches that interface. */
  12. #include <asm-generic/iomap.h>
  13. /* We don't use IO slowdowns on the Alpha, but.. */
  14. #define __SLOW_DOWN_IO do { } while (0)
  15. #define SLOW_DOWN_IO do { } while (0)
  16. /*
  17. * Virtual -> physical identity mapping starts at this offset
  18. */
  19. #ifdef USE_48_BIT_KSEG
  20. #define IDENT_ADDR 0xffff800000000000UL
  21. #else
  22. #define IDENT_ADDR 0xfffffc0000000000UL
  23. #endif
  24. /*
  25. * We try to avoid hae updates (thus the cache), but when we
  26. * do need to update the hae, we need to do it atomically, so
  27. * that any interrupts wouldn't get confused with the hae
  28. * register not being up-to-date with respect to the hardware
  29. * value.
  30. */
  31. extern inline void __set_hae(unsigned long new_hae)
  32. {
  33. unsigned long flags = swpipl(IPL_MAX);
  34. barrier();
  35. alpha_mv.hae_cache = new_hae;
  36. *alpha_mv.hae_register = new_hae;
  37. mb();
  38. /* Re-read to make sure it was written. */
  39. new_hae = *alpha_mv.hae_register;
  40. setipl(flags);
  41. barrier();
  42. }
  43. extern inline void set_hae(unsigned long new_hae)
  44. {
  45. if (new_hae != alpha_mv.hae_cache)
  46. __set_hae(new_hae);
  47. }
  48. /*
  49. * Change virtual addresses to physical addresses and vv.
  50. */
  51. #ifdef USE_48_BIT_KSEG
  52. static inline unsigned long virt_to_phys(volatile void *address)
  53. {
  54. return (unsigned long)address - IDENT_ADDR;
  55. }
  56. static inline void * phys_to_virt(unsigned long address)
  57. {
  58. return (void *) (address + IDENT_ADDR);
  59. }
  60. #else
  61. static inline unsigned long virt_to_phys(volatile void *address)
  62. {
  63. unsigned long phys = (unsigned long)address;
  64. /* Sign-extend from bit 41. */
  65. phys <<= (64 - 41);
  66. phys = (long)phys >> (64 - 41);
  67. /* Crop to the physical address width of the processor. */
  68. phys &= (1ul << hwrpb->pa_bits) - 1;
  69. return phys;
  70. }
  71. static inline void * phys_to_virt(unsigned long address)
  72. {
  73. return (void *)(IDENT_ADDR + (address & ((1ul << 41) - 1)));
  74. }
  75. #endif
  76. #define virt_to_phys virt_to_phys
  77. #define phys_to_virt phys_to_virt
  78. #define page_to_phys(page) page_to_pa(page)
  79. /* Maximum PIO space address supported? */
  80. #define IO_SPACE_LIMIT 0xffff
  81. /*
  82. * Change addresses as seen by the kernel (virtual) to addresses as
  83. * seen by a device (bus), and vice versa.
  84. *
  85. * Note that this only works for a limited range of kernel addresses,
  86. * and very well may not span all memory. Consider this interface
  87. * deprecated in favour of the DMA-mapping API.
  88. */
  89. extern unsigned long __direct_map_base;
  90. extern unsigned long __direct_map_size;
  91. static inline unsigned long __deprecated isa_virt_to_bus(volatile void *address)
  92. {
  93. unsigned long phys = virt_to_phys(address);
  94. unsigned long bus = phys + __direct_map_base;
  95. return phys <= __direct_map_size ? bus : 0;
  96. }
  97. #define isa_virt_to_bus isa_virt_to_bus
  98. static inline void * __deprecated isa_bus_to_virt(unsigned long address)
  99. {
  100. void *virt;
  101. /* This check is a sanity check but also ensures that bus address 0
  102. maps to virtual address 0 which is useful to detect null pointers
  103. (the NCR driver is much simpler if NULL pointers are preserved). */
  104. address -= __direct_map_base;
  105. virt = phys_to_virt(address);
  106. return (long)address <= 0 ? NULL : virt;
  107. }
  108. #define isa_bus_to_virt isa_bus_to_virt
  109. /*
  110. * There are different chipsets to interface the Alpha CPUs to the world.
  111. */
  112. #define IO_CONCAT(a,b) _IO_CONCAT(a,b)
  113. #define _IO_CONCAT(a,b) a ## _ ## b
  114. #ifdef CONFIG_ALPHA_GENERIC
  115. /* In a generic kernel, we always go through the machine vector. */
  116. #define REMAP1(TYPE, NAME, QUAL) \
  117. static inline TYPE generic_##NAME(QUAL void __iomem *addr) \
  118. { \
  119. return alpha_mv.mv_##NAME(addr); \
  120. }
  121. #define REMAP2(TYPE, NAME, QUAL) \
  122. static inline void generic_##NAME(TYPE b, QUAL void __iomem *addr) \
  123. { \
  124. alpha_mv.mv_##NAME(b, addr); \
  125. }
  126. REMAP1(unsigned int, ioread8, const)
  127. REMAP1(unsigned int, ioread16, const)
  128. REMAP1(unsigned int, ioread32, const)
  129. REMAP1(u64, ioread64, const)
  130. REMAP1(u8, readb, const volatile)
  131. REMAP1(u16, readw, const volatile)
  132. REMAP1(u32, readl, const volatile)
  133. REMAP1(u64, readq, const volatile)
  134. REMAP2(u8, iowrite8, /**/)
  135. REMAP2(u16, iowrite16, /**/)
  136. REMAP2(u32, iowrite32, /**/)
  137. REMAP2(u64, iowrite64, /**/)
  138. REMAP2(u8, writeb, volatile)
  139. REMAP2(u16, writew, volatile)
  140. REMAP2(u32, writel, volatile)
  141. REMAP2(u64, writeq, volatile)
  142. #undef REMAP1
  143. #undef REMAP2
  144. extern inline void __iomem *generic_ioportmap(unsigned long a)
  145. {
  146. return alpha_mv.mv_ioportmap(a);
  147. }
  148. static inline void __iomem *generic_ioremap(unsigned long a, unsigned long s)
  149. {
  150. return alpha_mv.mv_ioremap(a, s);
  151. }
  152. static inline void generic_iounmap(volatile void __iomem *a)
  153. {
  154. return alpha_mv.mv_iounmap(a);
  155. }
  156. static inline int generic_is_ioaddr(unsigned long a)
  157. {
  158. return alpha_mv.mv_is_ioaddr(a);
  159. }
  160. static inline int generic_is_mmio(const volatile void __iomem *a)
  161. {
  162. return alpha_mv.mv_is_mmio(a);
  163. }
  164. #define __IO_PREFIX generic
  165. #define generic_trivial_rw_bw 0
  166. #define generic_trivial_rw_lq 0
  167. #define generic_trivial_io_bw 0
  168. #define generic_trivial_io_lq 0
  169. #define generic_trivial_iounmap 0
  170. #else
  171. #if defined(CONFIG_ALPHA_APECS)
  172. # include <asm/core_apecs.h>
  173. #elif defined(CONFIG_ALPHA_CIA)
  174. # include <asm/core_cia.h>
  175. #elif defined(CONFIG_ALPHA_IRONGATE)
  176. # include <asm/core_irongate.h>
  177. #elif defined(CONFIG_ALPHA_JENSEN)
  178. # include <asm/jensen.h>
  179. #elif defined(CONFIG_ALPHA_LCA)
  180. # include <asm/core_lca.h>
  181. #elif defined(CONFIG_ALPHA_MARVEL)
  182. # include <asm/core_marvel.h>
  183. #elif defined(CONFIG_ALPHA_MCPCIA)
  184. # include <asm/core_mcpcia.h>
  185. #elif defined(CONFIG_ALPHA_POLARIS)
  186. # include <asm/core_polaris.h>
  187. #elif defined(CONFIG_ALPHA_T2)
  188. # include <asm/core_t2.h>
  189. #elif defined(CONFIG_ALPHA_TSUNAMI)
  190. # include <asm/core_tsunami.h>
  191. #elif defined(CONFIG_ALPHA_TITAN)
  192. # include <asm/core_titan.h>
  193. #elif defined(CONFIG_ALPHA_WILDFIRE)
  194. # include <asm/core_wildfire.h>
  195. #else
  196. #error "What system is this?"
  197. #endif
  198. #endif /* GENERIC */
  199. /*
  200. * We always have external versions of these routines.
  201. */
  202. extern u8 inb(unsigned long port);
  203. extern u16 inw(unsigned long port);
  204. extern u32 inl(unsigned long port);
  205. extern void outb(u8 b, unsigned long port);
  206. extern void outw(u16 b, unsigned long port);
  207. extern void outl(u32 b, unsigned long port);
  208. #define inb inb
  209. #define inw inw
  210. #define inl inl
  211. #define outb outb
  212. #define outw outw
  213. #define outl outl
  214. extern u8 readb(const volatile void __iomem *addr);
  215. extern u16 readw(const volatile void __iomem *addr);
  216. extern u32 readl(const volatile void __iomem *addr);
  217. extern u64 readq(const volatile void __iomem *addr);
  218. extern void writeb(u8 b, volatile void __iomem *addr);
  219. extern void writew(u16 b, volatile void __iomem *addr);
  220. extern void writel(u32 b, volatile void __iomem *addr);
  221. extern void writeq(u64 b, volatile void __iomem *addr);
  222. #define readb readb
  223. #define readw readw
  224. #define readl readl
  225. #define readq readq
  226. #define writeb writeb
  227. #define writew writew
  228. #define writel writel
  229. #define writeq writeq
  230. extern u8 __raw_readb(const volatile void __iomem *addr);
  231. extern u16 __raw_readw(const volatile void __iomem *addr);
  232. extern u32 __raw_readl(const volatile void __iomem *addr);
  233. extern u64 __raw_readq(const volatile void __iomem *addr);
  234. extern void __raw_writeb(u8 b, volatile void __iomem *addr);
  235. extern void __raw_writew(u16 b, volatile void __iomem *addr);
  236. extern void __raw_writel(u32 b, volatile void __iomem *addr);
  237. extern void __raw_writeq(u64 b, volatile void __iomem *addr);
  238. #define __raw_readb __raw_readb
  239. #define __raw_readw __raw_readw
  240. #define __raw_readl __raw_readl
  241. #define __raw_readq __raw_readq
  242. #define __raw_writeb __raw_writeb
  243. #define __raw_writew __raw_writew
  244. #define __raw_writel __raw_writel
  245. #define __raw_writeq __raw_writeq
  246. /*
  247. * Mapping from port numbers to __iomem space is pretty easy.
  248. */
  249. /* These two have to be extern inline because of the extern prototype from
  250. <asm-generic/iomap.h>. It is not legal to mix "extern" and "static" for
  251. the same declaration. */
  252. extern inline void __iomem *ioport_map(unsigned long port, unsigned int size)
  253. {
  254. return IO_CONCAT(__IO_PREFIX,ioportmap) (port);
  255. }
  256. extern inline void ioport_unmap(void __iomem *addr)
  257. {
  258. }
  259. #define ioport_map ioport_map
  260. #define ioport_unmap ioport_unmap
  261. static inline void __iomem *ioremap(unsigned long port, unsigned long size)
  262. {
  263. return IO_CONCAT(__IO_PREFIX,ioremap) (port, size);
  264. }
  265. #define ioremap_wc ioremap
  266. #define ioremap_uc ioremap
  267. static inline void iounmap(volatile void __iomem *addr)
  268. {
  269. IO_CONCAT(__IO_PREFIX,iounmap)(addr);
  270. }
  271. static inline int __is_ioaddr(unsigned long addr)
  272. {
  273. return IO_CONCAT(__IO_PREFIX,is_ioaddr)(addr);
  274. }
  275. #define __is_ioaddr(a) __is_ioaddr((unsigned long)(a))
  276. static inline int __is_mmio(const volatile void __iomem *addr)
  277. {
  278. return IO_CONCAT(__IO_PREFIX,is_mmio)(addr);
  279. }
  280. /*
  281. * If the actual I/O bits are sufficiently trivial, then expand inline.
  282. */
  283. #if IO_CONCAT(__IO_PREFIX,trivial_io_bw)
  284. extern inline unsigned int ioread8(const void __iomem *addr)
  285. {
  286. unsigned int ret;
  287. mb();
  288. ret = IO_CONCAT(__IO_PREFIX,ioread8)(addr);
  289. mb();
  290. return ret;
  291. }
  292. extern inline unsigned int ioread16(const void __iomem *addr)
  293. {
  294. unsigned int ret;
  295. mb();
  296. ret = IO_CONCAT(__IO_PREFIX,ioread16)(addr);
  297. mb();
  298. return ret;
  299. }
  300. extern inline void iowrite8(u8 b, void __iomem *addr)
  301. {
  302. mb();
  303. IO_CONCAT(__IO_PREFIX, iowrite8)(b, addr);
  304. }
  305. extern inline void iowrite16(u16 b, void __iomem *addr)
  306. {
  307. mb();
  308. IO_CONCAT(__IO_PREFIX, iowrite16)(b, addr);
  309. }
  310. extern inline u8 inb(unsigned long port)
  311. {
  312. return ioread8(ioport_map(port, 1));
  313. }
  314. extern inline u16 inw(unsigned long port)
  315. {
  316. return ioread16(ioport_map(port, 2));
  317. }
  318. extern inline void outb(u8 b, unsigned long port)
  319. {
  320. iowrite8(b, ioport_map(port, 1));
  321. }
  322. extern inline void outw(u16 b, unsigned long port)
  323. {
  324. iowrite16(b, ioport_map(port, 2));
  325. }
  326. #endif
  327. #define ioread8 ioread8
  328. #define ioread16 ioread16
  329. #define iowrite8 iowrite8
  330. #define iowrite16 iowrite16
  331. #if IO_CONCAT(__IO_PREFIX,trivial_io_lq)
  332. extern inline unsigned int ioread32(const void __iomem *addr)
  333. {
  334. unsigned int ret;
  335. mb();
  336. ret = IO_CONCAT(__IO_PREFIX,ioread32)(addr);
  337. mb();
  338. return ret;
  339. }
  340. extern inline u64 ioread64(const void __iomem *addr)
  341. {
  342. unsigned int ret;
  343. mb();
  344. ret = IO_CONCAT(__IO_PREFIX,ioread64)(addr);
  345. mb();
  346. return ret;
  347. }
  348. extern inline void iowrite32(u32 b, void __iomem *addr)
  349. {
  350. mb();
  351. IO_CONCAT(__IO_PREFIX, iowrite32)(b, addr);
  352. }
  353. extern inline void iowrite64(u64 b, void __iomem *addr)
  354. {
  355. mb();
  356. IO_CONCAT(__IO_PREFIX, iowrite64)(b, addr);
  357. }
  358. extern inline u32 inl(unsigned long port)
  359. {
  360. return ioread32(ioport_map(port, 4));
  361. }
  362. extern inline void outl(u32 b, unsigned long port)
  363. {
  364. iowrite32(b, ioport_map(port, 4));
  365. }
  366. #endif
  367. #define ioread32 ioread32
  368. #define ioread64 ioread64
  369. #define iowrite32 iowrite32
  370. #define iowrite64 iowrite64
  371. #if IO_CONCAT(__IO_PREFIX,trivial_rw_bw) == 1
  372. extern inline u8 __raw_readb(const volatile void __iomem *addr)
  373. {
  374. return IO_CONCAT(__IO_PREFIX,readb)(addr);
  375. }
  376. extern inline u16 __raw_readw(const volatile void __iomem *addr)
  377. {
  378. return IO_CONCAT(__IO_PREFIX,readw)(addr);
  379. }
  380. extern inline void __raw_writeb(u8 b, volatile void __iomem *addr)
  381. {
  382. IO_CONCAT(__IO_PREFIX,writeb)(b, addr);
  383. }
  384. extern inline void __raw_writew(u16 b, volatile void __iomem *addr)
  385. {
  386. IO_CONCAT(__IO_PREFIX,writew)(b, addr);
  387. }
  388. extern inline u8 readb(const volatile void __iomem *addr)
  389. {
  390. u8 ret;
  391. mb();
  392. ret = __raw_readb(addr);
  393. mb();
  394. return ret;
  395. }
  396. extern inline u16 readw(const volatile void __iomem *addr)
  397. {
  398. u16 ret;
  399. mb();
  400. ret = __raw_readw(addr);
  401. mb();
  402. return ret;
  403. }
  404. extern inline void writeb(u8 b, volatile void __iomem *addr)
  405. {
  406. mb();
  407. __raw_writeb(b, addr);
  408. }
  409. extern inline void writew(u16 b, volatile void __iomem *addr)
  410. {
  411. mb();
  412. __raw_writew(b, addr);
  413. }
  414. #endif
  415. #if IO_CONCAT(__IO_PREFIX,trivial_rw_lq) == 1
  416. extern inline u32 __raw_readl(const volatile void __iomem *addr)
  417. {
  418. return IO_CONCAT(__IO_PREFIX,readl)(addr);
  419. }
  420. extern inline u64 __raw_readq(const volatile void __iomem *addr)
  421. {
  422. return IO_CONCAT(__IO_PREFIX,readq)(addr);
  423. }
  424. extern inline void __raw_writel(u32 b, volatile void __iomem *addr)
  425. {
  426. IO_CONCAT(__IO_PREFIX,writel)(b, addr);
  427. }
  428. extern inline void __raw_writeq(u64 b, volatile void __iomem *addr)
  429. {
  430. IO_CONCAT(__IO_PREFIX,writeq)(b, addr);
  431. }
  432. extern inline u32 readl(const volatile void __iomem *addr)
  433. {
  434. u32 ret;
  435. mb();
  436. ret = __raw_readl(addr);
  437. mb();
  438. return ret;
  439. }
  440. extern inline u64 readq(const volatile void __iomem *addr)
  441. {
  442. u64 ret;
  443. mb();
  444. ret = __raw_readq(addr);
  445. mb();
  446. return ret;
  447. }
  448. extern inline void writel(u32 b, volatile void __iomem *addr)
  449. {
  450. mb();
  451. __raw_writel(b, addr);
  452. }
  453. extern inline void writeq(u64 b, volatile void __iomem *addr)
  454. {
  455. mb();
  456. __raw_writeq(b, addr);
  457. }
  458. #endif
  459. #define ioread16be(p) swab16(ioread16(p))
  460. #define ioread32be(p) swab32(ioread32(p))
  461. #define iowrite16be(v,p) iowrite16(swab16(v), (p))
  462. #define iowrite32be(v,p) iowrite32(swab32(v), (p))
  463. #define inb_p inb
  464. #define inw_p inw
  465. #define inl_p inl
  466. #define outb_p outb
  467. #define outw_p outw
  468. #define outl_p outl
  469. extern u8 readb_relaxed(const volatile void __iomem *addr);
  470. extern u16 readw_relaxed(const volatile void __iomem *addr);
  471. extern u32 readl_relaxed(const volatile void __iomem *addr);
  472. extern u64 readq_relaxed(const volatile void __iomem *addr);
  473. #define readb_relaxed readb_relaxed
  474. #define readw_relaxed readw_relaxed
  475. #define readl_relaxed readl_relaxed
  476. #define readq_relaxed readq_relaxed
  477. #if IO_CONCAT(__IO_PREFIX,trivial_io_bw)
  478. extern inline u8 readb_relaxed(const volatile void __iomem *addr)
  479. {
  480. mb();
  481. return __raw_readb(addr);
  482. }
  483. extern inline u16 readw_relaxed(const volatile void __iomem *addr)
  484. {
  485. mb();
  486. return __raw_readw(addr);
  487. }
  488. #endif
  489. #if IO_CONCAT(__IO_PREFIX,trivial_io_lq)
  490. extern inline u32 readl_relaxed(const volatile void __iomem *addr)
  491. {
  492. mb();
  493. return __raw_readl(addr);
  494. }
  495. extern inline u64 readq_relaxed(const volatile void __iomem *addr)
  496. {
  497. mb();
  498. return __raw_readq(addr);
  499. }
  500. #endif
  501. #define writeb_relaxed writeb
  502. #define writew_relaxed writew
  503. #define writel_relaxed writel
  504. #define writeq_relaxed writeq
  505. /*
  506. * String version of IO memory access ops:
  507. */
  508. extern void memcpy_fromio(void *, const volatile void __iomem *, long);
  509. extern void memcpy_toio(volatile void __iomem *, const void *, long);
  510. extern void _memset_c_io(volatile void __iomem *, unsigned long, long);
  511. static inline void memset_io(volatile void __iomem *addr, u8 c, long len)
  512. {
  513. _memset_c_io(addr, 0x0101010101010101UL * c, len);
  514. }
  515. #define __HAVE_ARCH_MEMSETW_IO
  516. static inline void memsetw_io(volatile void __iomem *addr, u16 c, long len)
  517. {
  518. _memset_c_io(addr, 0x0001000100010001UL * c, len);
  519. }
  520. #define memset_io memset_io
  521. #define memcpy_fromio memcpy_fromio
  522. #define memcpy_toio memcpy_toio
  523. /*
  524. * String versions of in/out ops:
  525. */
  526. extern void insb (unsigned long port, void *dst, unsigned long count);
  527. extern void insw (unsigned long port, void *dst, unsigned long count);
  528. extern void insl (unsigned long port, void *dst, unsigned long count);
  529. extern void outsb (unsigned long port, const void *src, unsigned long count);
  530. extern void outsw (unsigned long port, const void *src, unsigned long count);
  531. extern void outsl (unsigned long port, const void *src, unsigned long count);
  532. #define insb insb
  533. #define insw insw
  534. #define insl insl
  535. #define outsb outsb
  536. #define outsw outsw
  537. #define outsl outsl
  538. /*
  539. * The Alpha Jensen hardware for some rather strange reason puts
  540. * the RTC clock at 0x170 instead of 0x70. Probably due to some
  541. * misguided idea about using 0x70 for NMI stuff.
  542. *
  543. * These defines will override the defaults when doing RTC queries
  544. */
  545. #ifdef CONFIG_ALPHA_GENERIC
  546. # define RTC_PORT(x) ((x) + alpha_mv.rtc_port)
  547. #else
  548. # ifdef CONFIG_ALPHA_JENSEN
  549. # define RTC_PORT(x) (0x170+(x))
  550. # else
  551. # define RTC_PORT(x) (0x70 + (x))
  552. # endif
  553. #endif
  554. #define RTC_ALWAYS_BCD 0
  555. /*
  556. * Convert a physical pointer to a virtual kernel pointer for /dev/mem
  557. * access
  558. */
  559. #define xlate_dev_mem_ptr(p) __va(p)
  560. /*
  561. * These get provided from <asm-generic/iomap.h> since alpha does not
  562. * select GENERIC_IOMAP.
  563. */
  564. #define ioread64 ioread64
  565. #define iowrite64 iowrite64
  566. #define ioread64be ioread64be
  567. #define iowrite64be iowrite64be
  568. #define ioread8_rep ioread8_rep
  569. #define ioread16_rep ioread16_rep
  570. #define ioread32_rep ioread32_rep
  571. #define iowrite8_rep iowrite8_rep
  572. #define iowrite16_rep iowrite16_rep
  573. #define iowrite32_rep iowrite32_rep
  574. #define pci_iounmap pci_iounmap
  575. #include <asm-generic/io.h>
  576. #endif /* __KERNEL__ */
  577. #endif /* __ALPHA_IO_H */