immap_qe.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. /*
  2. * QUICC Engine (QE) Internal Memory Map.
  3. * The Internal Memory Map for devices with QE on them. This
  4. * is the superset of all QE devices (8360, etc.).
  5. * Copyright (C) 2006. Freescale Semiconductor, Inc. All rights reserved.
  6. *
  7. * Authors: Shlomi Gridish <gridish@freescale.com>
  8. * Li Yang <leoli@freescale.com>
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the License, or (at your
  13. * option) any later version.
  14. */
  15. #ifndef _ASM_POWERPC_IMMAP_QE_H
  16. #define _ASM_POWERPC_IMMAP_QE_H
  17. #ifdef __KERNEL__
  18. #include <linux/kernel.h>
  19. #include <asm/io.h>
  20. #define QE_IMMAP_SIZE (1024 * 1024) /* 1MB from 1MB+IMMR */
  21. /* QE I-RAM */
  22. struct qe_iram {
  23. __be32 iadd; /* I-RAM Address Register */
  24. __be32 idata; /* I-RAM Data Register */
  25. u8 res0[0x04];
  26. __be32 iready; /* I-RAM Ready Register */
  27. u8 res1[0x70];
  28. } __attribute__ ((packed));
  29. /* QE Interrupt Controller */
  30. struct qe_ic_regs {
  31. __be32 qicr;
  32. __be32 qivec;
  33. __be32 qripnr;
  34. __be32 qipnr;
  35. __be32 qipxcc;
  36. __be32 qipycc;
  37. __be32 qipwcc;
  38. __be32 qipzcc;
  39. __be32 qimr;
  40. __be32 qrimr;
  41. __be32 qicnr;
  42. u8 res0[0x4];
  43. __be32 qiprta;
  44. __be32 qiprtb;
  45. u8 res1[0x4];
  46. __be32 qricr;
  47. u8 res2[0x20];
  48. __be32 qhivec;
  49. u8 res3[0x1C];
  50. } __attribute__ ((packed));
  51. /* Communications Processor */
  52. struct cp_qe {
  53. __be32 cecr; /* QE command register */
  54. __be32 ceccr; /* QE controller configuration register */
  55. __be32 cecdr; /* QE command data register */
  56. u8 res0[0xA];
  57. __be16 ceter; /* QE timer event register */
  58. u8 res1[0x2];
  59. __be16 cetmr; /* QE timers mask register */
  60. __be32 cetscr; /* QE time-stamp timer control register */
  61. __be32 cetsr1; /* QE time-stamp register 1 */
  62. __be32 cetsr2; /* QE time-stamp register 2 */
  63. u8 res2[0x8];
  64. __be32 cevter; /* QE virtual tasks event register */
  65. __be32 cevtmr; /* QE virtual tasks mask register */
  66. __be16 cercr; /* QE RAM control register */
  67. u8 res3[0x2];
  68. u8 res4[0x24];
  69. __be16 ceexe1; /* QE external request 1 event register */
  70. u8 res5[0x2];
  71. __be16 ceexm1; /* QE external request 1 mask register */
  72. u8 res6[0x2];
  73. __be16 ceexe2; /* QE external request 2 event register */
  74. u8 res7[0x2];
  75. __be16 ceexm2; /* QE external request 2 mask register */
  76. u8 res8[0x2];
  77. __be16 ceexe3; /* QE external request 3 event register */
  78. u8 res9[0x2];
  79. __be16 ceexm3; /* QE external request 3 mask register */
  80. u8 res10[0x2];
  81. __be16 ceexe4; /* QE external request 4 event register */
  82. u8 res11[0x2];
  83. __be16 ceexm4; /* QE external request 4 mask register */
  84. u8 res12[0x3A];
  85. __be32 ceurnr; /* QE microcode revision number register */
  86. u8 res13[0x244];
  87. } __attribute__ ((packed));
  88. /* QE Multiplexer */
  89. struct qe_mux {
  90. __be32 cmxgcr; /* CMX general clock route register */
  91. __be32 cmxsi1cr_l; /* CMX SI1 clock route low register */
  92. __be32 cmxsi1cr_h; /* CMX SI1 clock route high register */
  93. __be32 cmxsi1syr; /* CMX SI1 SYNC route register */
  94. __be32 cmxucr[4]; /* CMX UCCx clock route registers */
  95. __be32 cmxupcr; /* CMX UPC clock route register */
  96. u8 res0[0x1C];
  97. } __attribute__ ((packed));
  98. /* QE Timers */
  99. struct qe_timers {
  100. u8 gtcfr1; /* Timer 1 and Timer 2 global config register*/
  101. u8 res0[0x3];
  102. u8 gtcfr2; /* Timer 3 and timer 4 global config register*/
  103. u8 res1[0xB];
  104. __be16 gtmdr1; /* Timer 1 mode register */
  105. __be16 gtmdr2; /* Timer 2 mode register */
  106. __be16 gtrfr1; /* Timer 1 reference register */
  107. __be16 gtrfr2; /* Timer 2 reference register */
  108. __be16 gtcpr1; /* Timer 1 capture register */
  109. __be16 gtcpr2; /* Timer 2 capture register */
  110. __be16 gtcnr1; /* Timer 1 counter */
  111. __be16 gtcnr2; /* Timer 2 counter */
  112. __be16 gtmdr3; /* Timer 3 mode register */
  113. __be16 gtmdr4; /* Timer 4 mode register */
  114. __be16 gtrfr3; /* Timer 3 reference register */
  115. __be16 gtrfr4; /* Timer 4 reference register */
  116. __be16 gtcpr3; /* Timer 3 capture register */
  117. __be16 gtcpr4; /* Timer 4 capture register */
  118. __be16 gtcnr3; /* Timer 3 counter */
  119. __be16 gtcnr4; /* Timer 4 counter */
  120. __be16 gtevr1; /* Timer 1 event register */
  121. __be16 gtevr2; /* Timer 2 event register */
  122. __be16 gtevr3; /* Timer 3 event register */
  123. __be16 gtevr4; /* Timer 4 event register */
  124. __be16 gtps; /* Timer 1 prescale register */
  125. u8 res2[0x46];
  126. } __attribute__ ((packed));
  127. /* BRG */
  128. struct qe_brg {
  129. __be32 brgc[16]; /* BRG configuration registers */
  130. u8 res0[0x40];
  131. } __attribute__ ((packed));
  132. /* SPI */
  133. struct spi {
  134. u8 res0[0x20];
  135. __be32 spmode; /* SPI mode register */
  136. u8 res1[0x2];
  137. u8 spie; /* SPI event register */
  138. u8 res2[0x1];
  139. u8 res3[0x2];
  140. u8 spim; /* SPI mask register */
  141. u8 res4[0x1];
  142. u8 res5[0x1];
  143. u8 spcom; /* SPI command register */
  144. u8 res6[0x2];
  145. __be32 spitd; /* SPI transmit data register (cpu mode) */
  146. __be32 spird; /* SPI receive data register (cpu mode) */
  147. u8 res7[0x8];
  148. } __attribute__ ((packed));
  149. /* SI */
  150. struct si1 {
  151. __be16 siamr1; /* SI1 TDMA mode register */
  152. __be16 sibmr1; /* SI1 TDMB mode register */
  153. __be16 sicmr1; /* SI1 TDMC mode register */
  154. __be16 sidmr1; /* SI1 TDMD mode register */
  155. u8 siglmr1_h; /* SI1 global mode register high */
  156. u8 res0[0x1];
  157. u8 sicmdr1_h; /* SI1 command register high */
  158. u8 res2[0x1];
  159. u8 sistr1_h; /* SI1 status register high */
  160. u8 res3[0x1];
  161. __be16 sirsr1_h; /* SI1 RAM shadow address register high */
  162. u8 sitarc1; /* SI1 RAM counter Tx TDMA */
  163. u8 sitbrc1; /* SI1 RAM counter Tx TDMB */
  164. u8 sitcrc1; /* SI1 RAM counter Tx TDMC */
  165. u8 sitdrc1; /* SI1 RAM counter Tx TDMD */
  166. u8 sirarc1; /* SI1 RAM counter Rx TDMA */
  167. u8 sirbrc1; /* SI1 RAM counter Rx TDMB */
  168. u8 sircrc1; /* SI1 RAM counter Rx TDMC */
  169. u8 sirdrc1; /* SI1 RAM counter Rx TDMD */
  170. u8 res4[0x8];
  171. __be16 siemr1; /* SI1 TDME mode register 16 bits */
  172. __be16 sifmr1; /* SI1 TDMF mode register 16 bits */
  173. __be16 sigmr1; /* SI1 TDMG mode register 16 bits */
  174. __be16 sihmr1; /* SI1 TDMH mode register 16 bits */
  175. u8 siglmg1_l; /* SI1 global mode register low 8 bits */
  176. u8 res5[0x1];
  177. u8 sicmdr1_l; /* SI1 command register low 8 bits */
  178. u8 res6[0x1];
  179. u8 sistr1_l; /* SI1 status register low 8 bits */
  180. u8 res7[0x1];
  181. __be16 sirsr1_l; /* SI1 RAM shadow address register low 16 bits*/
  182. u8 siterc1; /* SI1 RAM counter Tx TDME 8 bits */
  183. u8 sitfrc1; /* SI1 RAM counter Tx TDMF 8 bits */
  184. u8 sitgrc1; /* SI1 RAM counter Tx TDMG 8 bits */
  185. u8 sithrc1; /* SI1 RAM counter Tx TDMH 8 bits */
  186. u8 sirerc1; /* SI1 RAM counter Rx TDME 8 bits */
  187. u8 sirfrc1; /* SI1 RAM counter Rx TDMF 8 bits */
  188. u8 sirgrc1; /* SI1 RAM counter Rx TDMG 8 bits */
  189. u8 sirhrc1; /* SI1 RAM counter Rx TDMH 8 bits */
  190. u8 res8[0x8];
  191. __be32 siml1; /* SI1 multiframe limit register */
  192. u8 siedm1; /* SI1 extended diagnostic mode register */
  193. u8 res9[0xBB];
  194. } __attribute__ ((packed));
  195. /* SI Routing Tables */
  196. struct sir {
  197. u8 tx[0x400];
  198. u8 rx[0x400];
  199. u8 res0[0x800];
  200. } __attribute__ ((packed));
  201. /* USB Controller */
  202. struct qe_usb_ctlr {
  203. u8 usb_usmod;
  204. u8 usb_usadr;
  205. u8 usb_uscom;
  206. u8 res1[1];
  207. __be16 usb_usep[4];
  208. u8 res2[4];
  209. __be16 usb_usber;
  210. u8 res3[2];
  211. __be16 usb_usbmr;
  212. u8 res4[1];
  213. u8 usb_usbs;
  214. __be16 usb_ussft;
  215. u8 res5[2];
  216. __be16 usb_usfrn;
  217. u8 res6[0x22];
  218. } __attribute__ ((packed));
  219. /* MCC */
  220. struct qe_mcc {
  221. __be32 mcce; /* MCC event register */
  222. __be32 mccm; /* MCC mask register */
  223. __be32 mccf; /* MCC configuration register */
  224. __be32 merl; /* MCC emergency request level register */
  225. u8 res0[0xF0];
  226. } __attribute__ ((packed));
  227. /* QE UCC Slow */
  228. struct ucc_slow {
  229. __be32 gumr_l; /* UCCx general mode register (low) */
  230. __be32 gumr_h; /* UCCx general mode register (high) */
  231. __be16 upsmr; /* UCCx protocol-specific mode register */
  232. u8 res0[0x2];
  233. __be16 utodr; /* UCCx transmit on demand register */
  234. __be16 udsr; /* UCCx data synchronization register */
  235. __be16 ucce; /* UCCx event register */
  236. u8 res1[0x2];
  237. __be16 uccm; /* UCCx mask register */
  238. u8 res2[0x1];
  239. u8 uccs; /* UCCx status register */
  240. u8 res3[0x24];
  241. __be16 utpt;
  242. u8 res4[0x52];
  243. u8 guemr; /* UCC general extended mode register */
  244. } __attribute__ ((packed));
  245. /* QE UCC Fast */
  246. struct ucc_fast {
  247. __be32 gumr; /* UCCx general mode register */
  248. __be32 upsmr; /* UCCx protocol-specific mode register */
  249. __be16 utodr; /* UCCx transmit on demand register */
  250. u8 res0[0x2];
  251. __be16 udsr; /* UCCx data synchronization register */
  252. u8 res1[0x2];
  253. __be32 ucce; /* UCCx event register */
  254. __be32 uccm; /* UCCx mask register */
  255. u8 uccs; /* UCCx status register */
  256. u8 res2[0x7];
  257. __be32 urfb; /* UCC receive FIFO base */
  258. __be16 urfs; /* UCC receive FIFO size */
  259. u8 res3[0x2];
  260. __be16 urfet; /* UCC receive FIFO emergency threshold */
  261. __be16 urfset; /* UCC receive FIFO special emergency
  262. threshold */
  263. __be32 utfb; /* UCC transmit FIFO base */
  264. __be16 utfs; /* UCC transmit FIFO size */
  265. u8 res4[0x2];
  266. __be16 utfet; /* UCC transmit FIFO emergency threshold */
  267. u8 res5[0x2];
  268. __be16 utftt; /* UCC transmit FIFO transmit threshold */
  269. u8 res6[0x2];
  270. __be16 utpt; /* UCC transmit polling timer */
  271. u8 res7[0x2];
  272. __be32 urtry; /* UCC retry counter register */
  273. u8 res8[0x4C];
  274. u8 guemr; /* UCC general extended mode register */
  275. } __attribute__ ((packed));
  276. struct ucc {
  277. union {
  278. struct ucc_slow slow;
  279. struct ucc_fast fast;
  280. u8 res[0x200]; /* UCC blocks are 512 bytes each */
  281. };
  282. } __attribute__ ((packed));
  283. /* MultiPHY UTOPIA POS Controllers (UPC) */
  284. struct upc {
  285. __be32 upgcr; /* UTOPIA/POS general configuration register */
  286. __be32 uplpa; /* UTOPIA/POS last PHY address */
  287. __be32 uphec; /* ATM HEC register */
  288. __be32 upuc; /* UTOPIA/POS UCC configuration */
  289. __be32 updc1; /* UTOPIA/POS device 1 configuration */
  290. __be32 updc2; /* UTOPIA/POS device 2 configuration */
  291. __be32 updc3; /* UTOPIA/POS device 3 configuration */
  292. __be32 updc4; /* UTOPIA/POS device 4 configuration */
  293. __be32 upstpa; /* UTOPIA/POS STPA threshold */
  294. u8 res0[0xC];
  295. __be32 updrs1_h; /* UTOPIA/POS device 1 rate select */
  296. __be32 updrs1_l; /* UTOPIA/POS device 1 rate select */
  297. __be32 updrs2_h; /* UTOPIA/POS device 2 rate select */
  298. __be32 updrs2_l; /* UTOPIA/POS device 2 rate select */
  299. __be32 updrs3_h; /* UTOPIA/POS device 3 rate select */
  300. __be32 updrs3_l; /* UTOPIA/POS device 3 rate select */
  301. __be32 updrs4_h; /* UTOPIA/POS device 4 rate select */
  302. __be32 updrs4_l; /* UTOPIA/POS device 4 rate select */
  303. __be32 updrp1; /* UTOPIA/POS device 1 receive priority low */
  304. __be32 updrp2; /* UTOPIA/POS device 2 receive priority low */
  305. __be32 updrp3; /* UTOPIA/POS device 3 receive priority low */
  306. __be32 updrp4; /* UTOPIA/POS device 4 receive priority low */
  307. __be32 upde1; /* UTOPIA/POS device 1 event */
  308. __be32 upde2; /* UTOPIA/POS device 2 event */
  309. __be32 upde3; /* UTOPIA/POS device 3 event */
  310. __be32 upde4; /* UTOPIA/POS device 4 event */
  311. __be16 uprp1;
  312. __be16 uprp2;
  313. __be16 uprp3;
  314. __be16 uprp4;
  315. u8 res1[0x8];
  316. __be16 uptirr1_0; /* Device 1 transmit internal rate 0 */
  317. __be16 uptirr1_1; /* Device 1 transmit internal rate 1 */
  318. __be16 uptirr1_2; /* Device 1 transmit internal rate 2 */
  319. __be16 uptirr1_3; /* Device 1 transmit internal rate 3 */
  320. __be16 uptirr2_0; /* Device 2 transmit internal rate 0 */
  321. __be16 uptirr2_1; /* Device 2 transmit internal rate 1 */
  322. __be16 uptirr2_2; /* Device 2 transmit internal rate 2 */
  323. __be16 uptirr2_3; /* Device 2 transmit internal rate 3 */
  324. __be16 uptirr3_0; /* Device 3 transmit internal rate 0 */
  325. __be16 uptirr3_1; /* Device 3 transmit internal rate 1 */
  326. __be16 uptirr3_2; /* Device 3 transmit internal rate 2 */
  327. __be16 uptirr3_3; /* Device 3 transmit internal rate 3 */
  328. __be16 uptirr4_0; /* Device 4 transmit internal rate 0 */
  329. __be16 uptirr4_1; /* Device 4 transmit internal rate 1 */
  330. __be16 uptirr4_2; /* Device 4 transmit internal rate 2 */
  331. __be16 uptirr4_3; /* Device 4 transmit internal rate 3 */
  332. __be32 uper1; /* Device 1 port enable register */
  333. __be32 uper2; /* Device 2 port enable register */
  334. __be32 uper3; /* Device 3 port enable register */
  335. __be32 uper4; /* Device 4 port enable register */
  336. u8 res2[0x150];
  337. } __attribute__ ((packed));
  338. /* SDMA */
  339. struct sdma {
  340. __be32 sdsr; /* Serial DMA status register */
  341. __be32 sdmr; /* Serial DMA mode register */
  342. __be32 sdtr1; /* SDMA system bus threshold register */
  343. __be32 sdtr2; /* SDMA secondary bus threshold register */
  344. __be32 sdhy1; /* SDMA system bus hysteresis register */
  345. __be32 sdhy2; /* SDMA secondary bus hysteresis register */
  346. __be32 sdta1; /* SDMA system bus address register */
  347. __be32 sdta2; /* SDMA secondary bus address register */
  348. __be32 sdtm1; /* SDMA system bus MSNUM register */
  349. __be32 sdtm2; /* SDMA secondary bus MSNUM register */
  350. u8 res0[0x10];
  351. __be32 sdaqr; /* SDMA address bus qualify register */
  352. __be32 sdaqmr; /* SDMA address bus qualify mask register */
  353. u8 res1[0x4];
  354. __be32 sdebcr; /* SDMA CAM entries base register */
  355. u8 res2[0x38];
  356. } __attribute__ ((packed));
  357. /* Debug Space */
  358. struct dbg {
  359. __be32 bpdcr; /* Breakpoint debug command register */
  360. __be32 bpdsr; /* Breakpoint debug status register */
  361. __be32 bpdmr; /* Breakpoint debug mask register */
  362. __be32 bprmrr0; /* Breakpoint request mode risc register 0 */
  363. __be32 bprmrr1; /* Breakpoint request mode risc register 1 */
  364. u8 res0[0x8];
  365. __be32 bprmtr0; /* Breakpoint request mode trb register 0 */
  366. __be32 bprmtr1; /* Breakpoint request mode trb register 1 */
  367. u8 res1[0x8];
  368. __be32 bprmir; /* Breakpoint request mode immediate register */
  369. __be32 bprmsr; /* Breakpoint request mode serial register */
  370. __be32 bpemr; /* Breakpoint exit mode register */
  371. u8 res2[0x48];
  372. } __attribute__ ((packed));
  373. /*
  374. * RISC Special Registers (Trap and Breakpoint). These are described in
  375. * the QE Developer's Handbook.
  376. */
  377. struct rsp {
  378. __be32 tibcr[16]; /* Trap/instruction breakpoint control regs */
  379. u8 res0[64];
  380. __be32 ibcr0;
  381. __be32 ibs0;
  382. __be32 ibcnr0;
  383. u8 res1[4];
  384. __be32 ibcr1;
  385. __be32 ibs1;
  386. __be32 ibcnr1;
  387. __be32 npcr;
  388. __be32 dbcr;
  389. __be32 dbar;
  390. __be32 dbamr;
  391. __be32 dbsr;
  392. __be32 dbcnr;
  393. u8 res2[12];
  394. __be32 dbdr_h;
  395. __be32 dbdr_l;
  396. __be32 dbdmr_h;
  397. __be32 dbdmr_l;
  398. __be32 bsr;
  399. __be32 bor;
  400. __be32 bior;
  401. u8 res3[4];
  402. __be32 iatr[4];
  403. __be32 eccr; /* Exception control configuration register */
  404. __be32 eicr;
  405. u8 res4[0x100-0xf8];
  406. } __attribute__ ((packed));
  407. struct qe_immap {
  408. struct qe_iram iram; /* I-RAM */
  409. struct qe_ic_regs ic; /* Interrupt Controller */
  410. struct cp_qe cp; /* Communications Processor */
  411. struct qe_mux qmx; /* QE Multiplexer */
  412. struct qe_timers qet; /* QE Timers */
  413. struct spi spi[0x2]; /* spi */
  414. struct qe_mcc mcc; /* mcc */
  415. struct qe_brg brg; /* brg */
  416. struct qe_usb_ctlr usb; /* USB */
  417. struct si1 si1; /* SI */
  418. u8 res11[0x800];
  419. struct sir sir; /* SI Routing Tables */
  420. struct ucc ucc1; /* ucc1 */
  421. struct ucc ucc3; /* ucc3 */
  422. struct ucc ucc5; /* ucc5 */
  423. struct ucc ucc7; /* ucc7 */
  424. u8 res12[0x600];
  425. struct upc upc1; /* MultiPHY UTOPIA POS Ctrlr 1*/
  426. struct ucc ucc2; /* ucc2 */
  427. struct ucc ucc4; /* ucc4 */
  428. struct ucc ucc6; /* ucc6 */
  429. struct ucc ucc8; /* ucc8 */
  430. u8 res13[0x600];
  431. struct upc upc2; /* MultiPHY UTOPIA POS Ctrlr 2*/
  432. struct sdma sdma; /* SDMA */
  433. struct dbg dbg; /* 0x104080 - 0x1040FF
  434. Debug Space */
  435. struct rsp rsp[0x2]; /* 0x104100 - 0x1042FF
  436. RISC Special Registers
  437. (Trap and Breakpoint) */
  438. u8 res14[0x300]; /* 0x104300 - 0x1045FF */
  439. u8 res15[0x3A00]; /* 0x104600 - 0x107FFF */
  440. u8 res16[0x8000]; /* 0x108000 - 0x110000 */
  441. u8 muram[0xC000]; /* 0x110000 - 0x11C000
  442. Multi-user RAM */
  443. u8 res17[0x24000]; /* 0x11C000 - 0x140000 */
  444. u8 res18[0xC0000]; /* 0x140000 - 0x200000 */
  445. } __attribute__ ((packed));
  446. extern struct qe_immap __iomem *qe_immr;
  447. extern phys_addr_t get_qe_base(void);
  448. /*
  449. * Returns the offset within the QE address space of the given pointer.
  450. *
  451. * Note that the QE does not support 36-bit physical addresses, so if
  452. * get_qe_base() returns a number above 4GB, the caller will probably fail.
  453. */
  454. static inline phys_addr_t immrbar_virt_to_phys(void *address)
  455. {
  456. void *q = (void *)qe_immr;
  457. /* Is it a MURAM address? */
  458. if ((address >= q) && (address < (q + QE_IMMAP_SIZE)))
  459. return get_qe_base() + (address - q);
  460. /* It's an address returned by kmalloc */
  461. return virt_to_phys(address);
  462. }
  463. #endif /* __KERNEL__ */
  464. #endif /* _ASM_POWERPC_IMMAP_QE_H */