-
-
Notifications
You must be signed in to change notification settings - Fork 125
Add enums to the OpenBIOS SIO module and basic cleanup #1920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes remove the legacy SIO interface and its associated files while introducing a new SIO header with a refined interface. In detail, the old Changes
Sequence Diagram(s)sequenceDiagram
participant App as Application (card.c/driver.c)
participant Ex as exchangeByte
participant SIO as SIO Hardware (SIOPort)
App->>Ex: Call exchangeByte(byte)
Ex->>SIO: Read current FIFO value
Ex->>SIO: Write new byte to FIFO
Ex-->>App: Return exchanged byte
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (7)
💤 Files with no reviewable changes (4)
🧰 Additional context used🧬 Code Graph Analysis (1)src/mips/openbios/sio0/card.c (1)
⏰ Context from checks skipped due to timeout of 90000ms (11)
🔇 Additional comments (20)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Files not reviewed (1)
- src/mips/openbios/Makefile: Language not supported
Comments suppressed due to low confidence (2)
src/mips/openbios/sio0/driver.c:101
- [nitpick] The busyloop delay values (e.g., 10, 20, 40) are used as magic numbers; consider defining named constants to improve readability and maintainability.
busyloop(10);
src/mips/openbios/sio0/card.c:110
- [nitpick] Consider removing or revising the informal comment ('durr?') to provide a clearer, more professional explanation of the rationale behind resetting g_skipErrorOnNewCard.
g_skipErrorOnNewCard = 0; // durr?
I copy pasted the enums from Psyqo. Tested it on Duckstation and it seems to be working fine.