ps3.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. /*
  2. * PS3 platform declarations.
  3. *
  4. * Copyright (C) 2006 Sony Computer Entertainment Inc.
  5. * Copyright 2006 Sony Corp.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; version 2 of the License.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. */
  20. #if !defined(_ASM_POWERPC_PS3_H)
  21. #define _ASM_POWERPC_PS3_H
  22. #include <linux/types.h>
  23. #include <linux/device.h>
  24. #include <asm/cell-pmu.h>
  25. union ps3_firmware_version {
  26. u64 raw;
  27. struct {
  28. u16 pad;
  29. u16 major;
  30. u16 minor;
  31. u16 rev;
  32. };
  33. };
  34. void ps3_get_firmware_version(union ps3_firmware_version *v);
  35. int ps3_compare_firmware_version(u16 major, u16 minor, u16 rev);
  36. /* 'Other OS' area */
  37. enum ps3_param_av_multi_out {
  38. PS3_PARAM_AV_MULTI_OUT_NTSC = 0,
  39. PS3_PARAM_AV_MULTI_OUT_PAL_RGB = 1,
  40. PS3_PARAM_AV_MULTI_OUT_PAL_YCBCR = 2,
  41. PS3_PARAM_AV_MULTI_OUT_SECAM = 3,
  42. };
  43. enum ps3_param_av_multi_out ps3_os_area_get_av_multi_out(void);
  44. extern u64 ps3_os_area_get_rtc_diff(void);
  45. extern void ps3_os_area_set_rtc_diff(u64 rtc_diff);
  46. struct ps3_os_area_flash_ops {
  47. ssize_t (*read)(void *buf, size_t count, loff_t pos);
  48. ssize_t (*write)(const void *buf, size_t count, loff_t pos);
  49. };
  50. extern void ps3_os_area_flash_register(const struct ps3_os_area_flash_ops *ops);
  51. /* dma routines */
  52. enum ps3_dma_page_size {
  53. PS3_DMA_4K = 12U,
  54. PS3_DMA_64K = 16U,
  55. PS3_DMA_1M = 20U,
  56. PS3_DMA_16M = 24U,
  57. };
  58. enum ps3_dma_region_type {
  59. PS3_DMA_OTHER = 0,
  60. PS3_DMA_INTERNAL = 2,
  61. };
  62. struct ps3_dma_region_ops;
  63. /**
  64. * struct ps3_dma_region - A per device dma state variables structure
  65. * @did: The HV device id.
  66. * @page_size: The ioc pagesize.
  67. * @region_type: The HV region type.
  68. * @bus_addr: The 'translated' bus address of the region.
  69. * @len: The length in bytes of the region.
  70. * @offset: The offset from the start of memory of the region.
  71. * @ioid: The IOID of the device who owns this region
  72. * @chunk_list: Opaque variable used by the ioc page manager.
  73. * @region_ops: struct ps3_dma_region_ops - dma region operations
  74. */
  75. struct ps3_dma_region {
  76. struct ps3_system_bus_device *dev;
  77. /* device variables */
  78. const struct ps3_dma_region_ops *region_ops;
  79. unsigned char ioid;
  80. enum ps3_dma_page_size page_size;
  81. enum ps3_dma_region_type region_type;
  82. unsigned long len;
  83. unsigned long offset;
  84. /* driver variables (set by ps3_dma_region_create) */
  85. unsigned long bus_addr;
  86. struct {
  87. spinlock_t lock;
  88. struct list_head head;
  89. } chunk_list;
  90. };
  91. struct ps3_dma_region_ops {
  92. int (*create)(struct ps3_dma_region *);
  93. int (*free)(struct ps3_dma_region *);
  94. int (*map)(struct ps3_dma_region *,
  95. unsigned long virt_addr,
  96. unsigned long len,
  97. dma_addr_t *bus_addr,
  98. u64 iopte_pp);
  99. int (*unmap)(struct ps3_dma_region *,
  100. dma_addr_t bus_addr,
  101. unsigned long len);
  102. };
  103. /**
  104. * struct ps3_dma_region_init - Helper to initialize structure variables
  105. *
  106. * Helper to properly initialize variables prior to calling
  107. * ps3_system_bus_device_register.
  108. */
  109. struct ps3_system_bus_device;
  110. int ps3_dma_region_init(struct ps3_system_bus_device *dev,
  111. struct ps3_dma_region *r, enum ps3_dma_page_size page_size,
  112. enum ps3_dma_region_type region_type, void *addr, unsigned long len);
  113. int ps3_dma_region_create(struct ps3_dma_region *r);
  114. int ps3_dma_region_free(struct ps3_dma_region *r);
  115. int ps3_dma_map(struct ps3_dma_region *r, unsigned long virt_addr,
  116. unsigned long len, dma_addr_t *bus_addr,
  117. u64 iopte_pp);
  118. int ps3_dma_unmap(struct ps3_dma_region *r, dma_addr_t bus_addr,
  119. unsigned long len);
  120. /* mmio routines */
  121. enum ps3_mmio_page_size {
  122. PS3_MMIO_4K = 12U,
  123. PS3_MMIO_64K = 16U
  124. };
  125. struct ps3_mmio_region_ops;
  126. /**
  127. * struct ps3_mmio_region - a per device mmio state variables structure
  128. *
  129. * Current systems can be supported with a single region per device.
  130. */
  131. struct ps3_mmio_region {
  132. struct ps3_system_bus_device *dev;
  133. const struct ps3_mmio_region_ops *mmio_ops;
  134. unsigned long bus_addr;
  135. unsigned long len;
  136. enum ps3_mmio_page_size page_size;
  137. unsigned long lpar_addr;
  138. };
  139. struct ps3_mmio_region_ops {
  140. int (*create)(struct ps3_mmio_region *);
  141. int (*free)(struct ps3_mmio_region *);
  142. };
  143. /**
  144. * struct ps3_mmio_region_init - Helper to initialize structure variables
  145. *
  146. * Helper to properly initialize variables prior to calling
  147. * ps3_system_bus_device_register.
  148. */
  149. int ps3_mmio_region_init(struct ps3_system_bus_device *dev,
  150. struct ps3_mmio_region *r, unsigned long bus_addr, unsigned long len,
  151. enum ps3_mmio_page_size page_size);
  152. int ps3_mmio_region_create(struct ps3_mmio_region *r);
  153. int ps3_free_mmio_region(struct ps3_mmio_region *r);
  154. unsigned long ps3_mm_phys_to_lpar(unsigned long phys_addr);
  155. /* inrerrupt routines */
  156. enum ps3_cpu_binding {
  157. PS3_BINDING_CPU_ANY = -1,
  158. PS3_BINDING_CPU_0 = 0,
  159. PS3_BINDING_CPU_1 = 1,
  160. };
  161. int ps3_irq_plug_setup(enum ps3_cpu_binding cpu, unsigned long outlet,
  162. unsigned int *virq);
  163. int ps3_irq_plug_destroy(unsigned int virq);
  164. int ps3_event_receive_port_setup(enum ps3_cpu_binding cpu, unsigned int *virq);
  165. int ps3_event_receive_port_destroy(unsigned int virq);
  166. int ps3_send_event_locally(unsigned int virq);
  167. int ps3_io_irq_setup(enum ps3_cpu_binding cpu, unsigned int interrupt_id,
  168. unsigned int *virq);
  169. int ps3_io_irq_destroy(unsigned int virq);
  170. int ps3_vuart_irq_setup(enum ps3_cpu_binding cpu, void* virt_addr_bmp,
  171. unsigned int *virq);
  172. int ps3_vuart_irq_destroy(unsigned int virq);
  173. int ps3_spe_irq_setup(enum ps3_cpu_binding cpu, unsigned long spe_id,
  174. unsigned int class, unsigned int *virq);
  175. int ps3_spe_irq_destroy(unsigned int virq);
  176. int ps3_sb_event_receive_port_setup(struct ps3_system_bus_device *dev,
  177. enum ps3_cpu_binding cpu, unsigned int *virq);
  178. int ps3_sb_event_receive_port_destroy(struct ps3_system_bus_device *dev,
  179. unsigned int virq);
  180. /* lv1 result codes */
  181. enum lv1_result {
  182. LV1_SUCCESS = 0,
  183. /* not used -1 */
  184. LV1_RESOURCE_SHORTAGE = -2,
  185. LV1_NO_PRIVILEGE = -3,
  186. LV1_DENIED_BY_POLICY = -4,
  187. LV1_ACCESS_VIOLATION = -5,
  188. LV1_NO_ENTRY = -6,
  189. LV1_DUPLICATE_ENTRY = -7,
  190. LV1_TYPE_MISMATCH = -8,
  191. LV1_BUSY = -9,
  192. LV1_EMPTY = -10,
  193. LV1_WRONG_STATE = -11,
  194. /* not used -12 */
  195. LV1_NO_MATCH = -13,
  196. LV1_ALREADY_CONNECTED = -14,
  197. LV1_UNSUPPORTED_PARAMETER_VALUE = -15,
  198. LV1_CONDITION_NOT_SATISFIED = -16,
  199. LV1_ILLEGAL_PARAMETER_VALUE = -17,
  200. LV1_BAD_OPTION = -18,
  201. LV1_IMPLEMENTATION_LIMITATION = -19,
  202. LV1_NOT_IMPLEMENTED = -20,
  203. LV1_INVALID_CLASS_ID = -21,
  204. LV1_CONSTRAINT_NOT_SATISFIED = -22,
  205. LV1_ALIGNMENT_ERROR = -23,
  206. LV1_HARDWARE_ERROR = -24,
  207. LV1_INVALID_DATA_FORMAT = -25,
  208. LV1_INVALID_OPERATION = -26,
  209. LV1_INTERNAL_ERROR = -32768,
  210. };
  211. static inline const char* ps3_result(int result)
  212. {
  213. #if defined(DEBUG) || defined(PS3_VERBOSE_RESULT)
  214. switch (result) {
  215. case LV1_SUCCESS:
  216. return "LV1_SUCCESS (0)";
  217. case -1:
  218. return "** unknown result ** (-1)";
  219. case LV1_RESOURCE_SHORTAGE:
  220. return "LV1_RESOURCE_SHORTAGE (-2)";
  221. case LV1_NO_PRIVILEGE:
  222. return "LV1_NO_PRIVILEGE (-3)";
  223. case LV1_DENIED_BY_POLICY:
  224. return "LV1_DENIED_BY_POLICY (-4)";
  225. case LV1_ACCESS_VIOLATION:
  226. return "LV1_ACCESS_VIOLATION (-5)";
  227. case LV1_NO_ENTRY:
  228. return "LV1_NO_ENTRY (-6)";
  229. case LV1_DUPLICATE_ENTRY:
  230. return "LV1_DUPLICATE_ENTRY (-7)";
  231. case LV1_TYPE_MISMATCH:
  232. return "LV1_TYPE_MISMATCH (-8)";
  233. case LV1_BUSY:
  234. return "LV1_BUSY (-9)";
  235. case LV1_EMPTY:
  236. return "LV1_EMPTY (-10)";
  237. case LV1_WRONG_STATE:
  238. return "LV1_WRONG_STATE (-11)";
  239. case -12:
  240. return "** unknown result ** (-12)";
  241. case LV1_NO_MATCH:
  242. return "LV1_NO_MATCH (-13)";
  243. case LV1_ALREADY_CONNECTED:
  244. return "LV1_ALREADY_CONNECTED (-14)";
  245. case LV1_UNSUPPORTED_PARAMETER_VALUE:
  246. return "LV1_UNSUPPORTED_PARAMETER_VALUE (-15)";
  247. case LV1_CONDITION_NOT_SATISFIED:
  248. return "LV1_CONDITION_NOT_SATISFIED (-16)";
  249. case LV1_ILLEGAL_PARAMETER_VALUE:
  250. return "LV1_ILLEGAL_PARAMETER_VALUE (-17)";
  251. case LV1_BAD_OPTION:
  252. return "LV1_BAD_OPTION (-18)";
  253. case LV1_IMPLEMENTATION_LIMITATION:
  254. return "LV1_IMPLEMENTATION_LIMITATION (-19)";
  255. case LV1_NOT_IMPLEMENTED:
  256. return "LV1_NOT_IMPLEMENTED (-20)";
  257. case LV1_INVALID_CLASS_ID:
  258. return "LV1_INVALID_CLASS_ID (-21)";
  259. case LV1_CONSTRAINT_NOT_SATISFIED:
  260. return "LV1_CONSTRAINT_NOT_SATISFIED (-22)";
  261. case LV1_ALIGNMENT_ERROR:
  262. return "LV1_ALIGNMENT_ERROR (-23)";
  263. case LV1_HARDWARE_ERROR:
  264. return "LV1_HARDWARE_ERROR (-24)";
  265. case LV1_INVALID_DATA_FORMAT:
  266. return "LV1_INVALID_DATA_FORMAT (-25)";
  267. case LV1_INVALID_OPERATION:
  268. return "LV1_INVALID_OPERATION (-26)";
  269. case LV1_INTERNAL_ERROR:
  270. return "LV1_INTERNAL_ERROR (-32768)";
  271. default:
  272. BUG();
  273. return "** unknown result **";
  274. };
  275. #else
  276. return "";
  277. #endif
  278. }
  279. /* system bus routines */
  280. enum ps3_match_id {
  281. PS3_MATCH_ID_EHCI = 1,
  282. PS3_MATCH_ID_OHCI = 2,
  283. PS3_MATCH_ID_GELIC = 3,
  284. PS3_MATCH_ID_AV_SETTINGS = 4,
  285. PS3_MATCH_ID_SYSTEM_MANAGER = 5,
  286. PS3_MATCH_ID_STOR_DISK = 6,
  287. PS3_MATCH_ID_STOR_ROM = 7,
  288. PS3_MATCH_ID_STOR_FLASH = 8,
  289. PS3_MATCH_ID_SOUND = 9,
  290. PS3_MATCH_ID_GPU = 10,
  291. PS3_MATCH_ID_LPM = 11,
  292. };
  293. enum ps3_match_sub_id {
  294. PS3_MATCH_SUB_ID_GPU_FB = 1,
  295. PS3_MATCH_SUB_ID_GPU_RAMDISK = 2,
  296. };
  297. #define PS3_MODULE_ALIAS_EHCI "ps3:1:0"
  298. #define PS3_MODULE_ALIAS_OHCI "ps3:2:0"
  299. #define PS3_MODULE_ALIAS_GELIC "ps3:3:0"
  300. #define PS3_MODULE_ALIAS_AV_SETTINGS "ps3:4:0"
  301. #define PS3_MODULE_ALIAS_SYSTEM_MANAGER "ps3:5:0"
  302. #define PS3_MODULE_ALIAS_STOR_DISK "ps3:6:0"
  303. #define PS3_MODULE_ALIAS_STOR_ROM "ps3:7:0"
  304. #define PS3_MODULE_ALIAS_STOR_FLASH "ps3:8:0"
  305. #define PS3_MODULE_ALIAS_SOUND "ps3:9:0"
  306. #define PS3_MODULE_ALIAS_GPU_FB "ps3:10:1"
  307. #define PS3_MODULE_ALIAS_GPU_RAMDISK "ps3:10:2"
  308. #define PS3_MODULE_ALIAS_LPM "ps3:11:0"
  309. enum ps3_system_bus_device_type {
  310. PS3_DEVICE_TYPE_IOC0 = 1,
  311. PS3_DEVICE_TYPE_SB,
  312. PS3_DEVICE_TYPE_VUART,
  313. PS3_DEVICE_TYPE_LPM,
  314. };
  315. /**
  316. * struct ps3_system_bus_device - a device on the system bus
  317. */
  318. struct ps3_system_bus_device {
  319. enum ps3_match_id match_id;
  320. enum ps3_match_sub_id match_sub_id;
  321. enum ps3_system_bus_device_type dev_type;
  322. u64 bus_id; /* SB */
  323. u64 dev_id; /* SB */
  324. unsigned int interrupt_id; /* SB */
  325. struct ps3_dma_region *d_region; /* SB, IOC0 */
  326. struct ps3_mmio_region *m_region; /* SB, IOC0*/
  327. unsigned int port_number; /* VUART */
  328. struct { /* LPM */
  329. u64 node_id;
  330. u64 pu_id;
  331. u64 rights;
  332. } lpm;
  333. /* struct iommu_table *iommu_table; -- waiting for BenH's cleanups */
  334. struct device core;
  335. void *driver_priv; /* private driver variables */
  336. };
  337. int ps3_open_hv_device(struct ps3_system_bus_device *dev);
  338. int ps3_close_hv_device(struct ps3_system_bus_device *dev);
  339. /**
  340. * struct ps3_system_bus_driver - a driver for a device on the system bus
  341. */
  342. struct ps3_system_bus_driver {
  343. enum ps3_match_id match_id;
  344. enum ps3_match_sub_id match_sub_id;
  345. struct device_driver core;
  346. int (*probe)(struct ps3_system_bus_device *);
  347. int (*remove)(struct ps3_system_bus_device *);
  348. int (*shutdown)(struct ps3_system_bus_device *);
  349. /* int (*suspend)(struct ps3_system_bus_device *, pm_message_t); */
  350. /* int (*resume)(struct ps3_system_bus_device *); */
  351. };
  352. int ps3_system_bus_device_register(struct ps3_system_bus_device *dev);
  353. int ps3_system_bus_driver_register(struct ps3_system_bus_driver *drv);
  354. void ps3_system_bus_driver_unregister(struct ps3_system_bus_driver *drv);
  355. static inline struct ps3_system_bus_driver *ps3_drv_to_system_bus_drv(
  356. struct device_driver *_drv)
  357. {
  358. return container_of(_drv, struct ps3_system_bus_driver, core);
  359. }
  360. static inline struct ps3_system_bus_device *ps3_dev_to_system_bus_dev(
  361. struct device *_dev)
  362. {
  363. return container_of(_dev, struct ps3_system_bus_device, core);
  364. }
  365. static inline struct ps3_system_bus_driver *
  366. ps3_system_bus_dev_to_system_bus_drv(struct ps3_system_bus_device *_dev)
  367. {
  368. BUG_ON(!_dev);
  369. BUG_ON(!_dev->core.driver);
  370. return ps3_drv_to_system_bus_drv(_dev->core.driver);
  371. }
  372. /**
  373. * ps3_system_bus_set_drvdata -
  374. * @dev: device structure
  375. * @data: Data to set
  376. */
  377. static inline void ps3_system_bus_set_drvdata(
  378. struct ps3_system_bus_device *dev, void *data)
  379. {
  380. dev_set_drvdata(&dev->core, data);
  381. }
  382. static inline void *ps3_system_bus_get_drvdata(
  383. struct ps3_system_bus_device *dev)
  384. {
  385. return dev_get_drvdata(&dev->core);
  386. }
  387. /* These two need global scope for get_dma_ops(). */
  388. extern struct bus_type ps3_system_bus_type;
  389. /* system manager */
  390. struct ps3_sys_manager_ops {
  391. struct ps3_system_bus_device *dev;
  392. void (*power_off)(struct ps3_system_bus_device *dev);
  393. void (*restart)(struct ps3_system_bus_device *dev);
  394. };
  395. void ps3_sys_manager_register_ops(const struct ps3_sys_manager_ops *ops);
  396. void __noreturn ps3_sys_manager_power_off(void);
  397. void __noreturn ps3_sys_manager_restart(void);
  398. void __noreturn ps3_sys_manager_halt(void);
  399. int ps3_sys_manager_get_wol(void);
  400. void ps3_sys_manager_set_wol(int state);
  401. struct ps3_prealloc {
  402. const char *name;
  403. void *address;
  404. unsigned long size;
  405. unsigned long align;
  406. };
  407. extern struct ps3_prealloc ps3fb_videomemory;
  408. extern struct ps3_prealloc ps3flash_bounce_buffer;
  409. /* logical performance monitor */
  410. /**
  411. * enum ps3_lpm_rights - Rigths granted by the system policy module.
  412. *
  413. * @PS3_LPM_RIGHTS_USE_LPM: The right to use the lpm.
  414. * @PS3_LPM_RIGHTS_USE_TB: The right to use the internal trace buffer.
  415. */
  416. enum ps3_lpm_rights {
  417. PS3_LPM_RIGHTS_USE_LPM = 0x001,
  418. PS3_LPM_RIGHTS_USE_TB = 0x100,
  419. };
  420. /**
  421. * enum ps3_lpm_tb_type - Type of trace buffer lv1 should use.
  422. *
  423. * @PS3_LPM_TB_TYPE_NONE: Do not use a trace buffer.
  424. * @PS3_LPM_RIGHTS_USE_TB: Use the lv1 internal trace buffer. Must have
  425. * rights @PS3_LPM_RIGHTS_USE_TB.
  426. */
  427. enum ps3_lpm_tb_type {
  428. PS3_LPM_TB_TYPE_NONE = 0,
  429. PS3_LPM_TB_TYPE_INTERNAL = 1,
  430. };
  431. int ps3_lpm_open(enum ps3_lpm_tb_type tb_type, void *tb_cache,
  432. u64 tb_cache_size);
  433. int ps3_lpm_close(void);
  434. int ps3_lpm_copy_tb(unsigned long offset, void *buf, unsigned long count,
  435. unsigned long *bytes_copied);
  436. int ps3_lpm_copy_tb_to_user(unsigned long offset, void __user *buf,
  437. unsigned long count, unsigned long *bytes_copied);
  438. void ps3_set_bookmark(u64 bookmark);
  439. void ps3_set_pm_bookmark(u64 tag, u64 incident, u64 th_id);
  440. int ps3_set_signal(u64 rtas_signal_group, u8 signal_bit, u16 sub_unit,
  441. u8 bus_word);
  442. u32 ps3_read_phys_ctr(u32 cpu, u32 phys_ctr);
  443. void ps3_write_phys_ctr(u32 cpu, u32 phys_ctr, u32 val);
  444. u32 ps3_read_ctr(u32 cpu, u32 ctr);
  445. void ps3_write_ctr(u32 cpu, u32 ctr, u32 val);
  446. u32 ps3_read_pm07_control(u32 cpu, u32 ctr);
  447. void ps3_write_pm07_control(u32 cpu, u32 ctr, u32 val);
  448. u32 ps3_read_pm(u32 cpu, enum pm_reg_name reg);
  449. void ps3_write_pm(u32 cpu, enum pm_reg_name reg, u32 val);
  450. u32 ps3_get_ctr_size(u32 cpu, u32 phys_ctr);
  451. void ps3_set_ctr_size(u32 cpu, u32 phys_ctr, u32 ctr_size);
  452. void ps3_enable_pm(u32 cpu);
  453. void ps3_disable_pm(u32 cpu);
  454. void ps3_enable_pm_interrupts(u32 cpu, u32 thread, u32 mask);
  455. void ps3_disable_pm_interrupts(u32 cpu);
  456. u32 ps3_get_and_clear_pm_interrupts(u32 cpu);
  457. void ps3_sync_irq(int node);
  458. u32 ps3_get_hw_thread_id(int cpu);
  459. u64 ps3_get_spe_id(void *arg);
  460. void ps3_early_mm_init(void);
  461. #endif