# Memory map, I/O ports and PCI devices Evidence tags as in the methodology. xboxdevwiki pages are cited by title and pinned revision (`scripts/pinned_wiki.json`); the wiki states no licence, so its facts are restated here and its tables are not copied. Most of its hardware pages say they were "retrieved" from the xbox-linux wiki (2002-2004) or written from hardware probing by the XQEMU and xemu developers; few cite a measurement. Treat every row as tier 3 at best, HYPOTHESIS where the wiki says FIXME. ## Physical memory map (retail; `Memory` r7416) - 0000_0000-03FF_FFFF: 64 MB of unified RAM (128 MB on development kits and Chihiro; boards 1.0-1.4 have pads for the second 64 MB: `Memory`, `Xbox Hardware Overview` r6007). Shared by the CPU, the GPU and every DMA master: the NV2A is the memory controller. - F000_0000-F3FF_FFFF: the same RAM again ("shadow"); the GPU-side view (HYPOTHESIS: an alias the kernel uses for write-combined GPU access; to confirm). - FD00_0000-FDFF_FFFF: NV2A registers (16 MB: PMC, PBUS, PFIFO, PTIMER, PFB, PGRAPH, PCRTC, PRAMDAC, PRAMIN, PVIDEO and the user FIFO channels, by NV20-family layout: envytools; the NV2A's own offsets in nxdk's `pbkit/nv_regs.h`, facts only). - FE80_0000-FE87_FFFF: APU; FEC0_0000-FEC0_0FFF: ACI (AC'97); FED0_0000 and FED0_8000: the two OHCI USB controllers; FEF0_0000-FEF0_03FF: the NIC. - FF00_0000-FFFF_FFFF: the flash (256 KB or 1 MB, aliased through 16 MB; on 1.6 boards a 256 KB ROM inside the Xcalibur chip on LPC: `Flash ROM` r7361). - FFFF_FE00-FFFF_FFFF: **the MCPX boot ROM overlay** while it is visible; hidden by a PCI configuration write (bit 1 of the ISA bridge's register 80h, the "0x80000880" write on `MCPX ROM` r5858). On revisions 1.1-1.6, accessing that range after the ROM is hidden freezes the system (`Flash ROM` r7361: Microsoft's response to the MIST hack). ## I/O ports (`Memory` r7416; the wiki marks the table "taken from the KVMBOX memorymap.txt, not confirmed") PC-compatible legacy in the MCPX: 8237 DMA (00h, C0h), 8259 PICs (20h, A0h), PIT (40h), A20 gate and speaker (60h-6Fh), CMOS/RTC (70h-73h), DMA page registers, FPU error (F0h), IDE (1F0h-1F7h, 3F6h), PCI configuration (CF8h/CFCh). Xbox-specific: SMBus at C000h (and 1000h by the ISA bridge's BAR), modem codec (MC97), LPC power management at 8000h, ACI at D000h/D200h, NIC at E000h, IDE bus master at FF60h. Development kits add a Super I/O at 2Eh with a serial port at 3F8h. ## PCI devices (`PCI` r6609) | Bus.Dev:Fn | Device | Notes | | --- | --- | --- | | 00.00:0 | host bridge (NV2A) | BAR0 a 1 GB window (the wiki's dump) | | 00.00:1, :2 | "broken devices" (wiki's heading) | | | 00.00:3 | DRAM controller (NV2A) | | | 00.01:0 | ISA bridge (MCPX, "HUB interface") | holds the MCPX ROM hide bit; LPC; BAR0 at 8000h | | 00.01:1 | SMBus controller (MCPX) | BAR1 C000h, BAR2 C200h | | 00.02:0, 00.03:0 | OHCI USB 0 and 1 (MCPX) | USB0 on IRQ1 serves the four controller ports; USB1 on IRQ9 is not wired out on retail units (`USB` r7298) | | 00.04:0 | NIC (nForce MAC) | | | 00.05:0 | APU | | | 00.06:0 | ACI (AC'97 audio) | | | 00.08:0 | PCI-PCI bridge | | | 00.09:0 | IDE controller | primary channel: HDD master, DVD slave | | 00.1E:0 | AGP bridge | | | 01.00:0 | NV2A GPU | | These are the configuration headers a booting kernel enumerates and the x-code interpreter writes; the board answers them by the wiki's register dumps and MAME's detector traces, each verified against the boot. ## Clocks (all tier 3 or worse; U-list in the handoff brief) - 14.318 MHz crystal input (`Motherboard` r7356, the oscillator row). - CPU 733 MHz on a 133 MHz front-side bus (`Motherboard` r7356; MAME 733,333,333 Hz). - NV2A 233 MHz ("NV2A GeForce 3MX Integrated GPU/Northbridge 233mHz": `Xbox Hardware Overview` r6007, retrieved from xbox-linux). - RAM: Samsung K4D263238M parts on early boards (same page, which calls them 133 MHz; the part's -QC50 grade is a 5 ns, 200 MHz DDR rating: HYPOTHESIS that the Xbox runs them at 200 MHz). - GP DSP "seems to run at 160 MHz" (`APU` r7415); PIC at 10 MHz (`System Management Controller` r7399); LPC at 33 MHz = PCI clock (`LPC Debug Port` r6799).