From a12f0e4f2015689638f3ff3c8438569aa2519aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Tue, 21 Jan 2025 00:57:34 +0000 Subject: [PATCH] dswifi: Add draft of DS WiFi general registers --- content/SUMMARY.md | 1 + content/ds_wifi_general_regs.md | 163 ++++++++++++++++++++++++++++++++ 2 files changed, 164 insertions(+) create mode 100644 content/ds_wifi_general_regs.md diff --git a/content/SUMMARY.md b/content/SUMMARY.md index 587494f..2fbae78 100644 --- a/content/SUMMARY.md +++ b/content/SUMMARY.md @@ -12,6 +12,7 @@ * [DS Peripherals](ds_peripherals.md) * [DS WiFi (Mitsumi)](ds_wifi.md) * [DS WiFi I/O Map](ds_wifi_io_map.md) + * [DS WiFi General Registers](ds_wifi_general_regs.md) * [DSi Introduction](dsi_introduction.md) * [DSi I/O Map](dsi_io_map.md) * [DSi Control Registers](dsi_control_regs.md) diff --git a/content/ds_wifi_general_regs.md b/content/ds_wifi_general_regs.md new file mode 100644 index 0000000..703400a --- /dev/null +++ b/content/ds_wifi_general_regs.md @@ -0,0 +1,163 @@ +# DS WiFi General Registers + + +## W\_ID: Chip ID (0x4808000, R) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | Chip ID + +This register returns 0x1440 in NDS, 0xC340 in NDS lite. + + +## W\_MODE\_RST: Reset (0x4808004, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | ??? + + +## W\_MODE\_WEP: WEP mode (0x4808006, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-2 | Software mode? +| 3-5 | WEP key size + + +## W\_TXSTATCNT: Beacons status register (0x4808008, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-11 | ??? +| 12 | +| 13 | +| 14 | +| 15 | + + +## W\_X\_00A: Unknown (0x480800A, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | ??? + + +## W\_IF: Interrupt request flags (0x4808010, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | See [W\_IE](ds_wifi_general_regs.md#W_IE)) + + +## W\_IE: Interrupt enable (0x4808012, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0 | +| 1 | +| 2 | +| 3 | +| 4 | +| 5 | +| 6 | +| 7 | +| 8 | +| 9 | +| 10 | Unused +| 11 | +| 12 | +| 13 | +| 14 | +| 15 | + + +## W\_MACADDR\_0: Hardware MAC address (0x4808018, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | + + +## W\_MACADDR\_1: Hardware MAC address (0x480801A, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | + + +## W\_MACADDR\_2: Hardware MAC address (0x480801C, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | + + +## W\_BSSID\_0: BSSID (0x4808020, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | + + +## W\_BSSID\_1: BSSID (0x4808022, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | + + +## W\_BSSID\_2: BSSID (0x4808024, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | + + +## W\_AID\_LOW: Unknown (0x4808028, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | + + +## W\_AID\_FULL: Association ID (0x480802A, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | + + +## W\_TX\_RETRYLIMIT: TX retry limit (0x480802C, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | + + +## W\_INTERNAL\_02E: Unknown (0x480802E, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | Unknown + + +## W\_RXCNT: RX control (0x4808030, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | + + +## W\_WEP\_CNT: WEP encryption enable (0x4808032, R/W) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | + + +## W\_INTERNAL\_034: Unknown (0x4808034, R?) + +| Bit(s) | Description | +|--------|---------------------------------------------------------| +| 0-15 | Unknown