Skip to content

wii - char driver for gba / joybus devices#81

Open
gummybuns wants to merge 16 commits into
NetBSD:trunkfrom
gummybuns:wii-identify
Open

wii - char driver for gba / joybus devices#81
gummybuns wants to merge 16 commits into
NetBSD:trunkfrom
gummybuns:wii-identify

Conversation

@gummybuns
Copy link
Copy Markdown

Adds /dev/gcport* char drivers to the nintendo wii to support additional devices on the gamecube controller ports.
Working example of it can be found here

changes

  • moves the register definitions out of si.c into si.h
  • implements data transfer over the SI IO Buffer
  • queries for the device id in the parent driver. continues to use uhid for gamecube controllers. all others are mapped to this new generic char driver
  • adds the child driver gcport_si.c with an ioctl command to leverage the serial communication

theres a couple of todos of things that i am struggling to figure out. i will ask around to try and resolve those but wanted to share the progess and see if this could get in

gummybuns added 16 commits May 29, 2026 14:06
- moved common stuff to si.h
- use the identity of the device in match for uhid/gba
- very basic char driver for gba
  right now can be initialized with mknod /dev/gba0 c gba 0
- still need to figure out why SI_RESET and SI_IDENTIFY
  require uint32_t when we are only sending 1 byte
- move multiboot to userland
- go back to only a single send ioctl
  - the rest will also live in userland
- cleanup joybus since we dont need shared code there either now
gcport is the gamecube port that has a device attached.
it will match everything besides the gamecube controller, which
currently uses the existing logic to attach as a uhid

keeping things generic removed references to gba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant