|
Nugget
Bare-metal libraries and examples for the original PlayStation
|
#include <stdint.h>#include "common/psxlibc/direntry.h"#include "common/psxlibc/stdio.h"#include "common/syscalls/syscalls.h"

Go to the source code of this file.
Macros | |
| #define | MEMCARD_PORT 0 |
| #define | DEVICE (MEMCARD_PORT << 4) |
| #define | BU_PATH(name) (MEMCARD_PORT == 0 ? "bu00:" name : "bu10:" name) |
| #define | initCard __nugget_bios_initCard |
| #define | startCard __nugget_bios_startCard |
| #define | buFormat __nugget_bios_buFormat |
| #define | firstFile __nugget_bios_firstFile |
| #define | nextFile __nugget_bios_nextFile |
| #define | erase __nugget_bios_erase |
| #define | EVENT_HWCARD 0xf0000011 |
Enumerations | |
| enum | { DONE , ERROR , TIMEOUT , NEWCARD , EVENTS } |
Functions | |
| int | __nugget_bios_initCard (int padEnable) |
| int | __nugget_bios_startCard (void) |
| int | __nugget_bios_buFormat (const char *dev) |
| struct DirEntry * | __nugget_bios_firstFile (const char *pattern, struct DirEntry *entry) |
| struct DirEntry * | __nugget_bios_nextFile (struct DirEntry *entry) |
| int | __nugget_bios_erase (const char *name) |
| int | main () |
| #define BU_PATH | ( | name | ) | (MEMCARD_PORT == 0 ? "bu00:" name : "bu10:" name) |
| #define buFormat __nugget_bios_buFormat |
| #define DEVICE (MEMCARD_PORT << 4) |
| #define erase __nugget_bios_erase |
| #define EVENT_HWCARD 0xf0000011 |
| #define firstFile __nugget_bios_firstFile |
| #define initCard __nugget_bios_initCard |
| #define MEMCARD_PORT 0 |
| #define nextFile __nugget_bios_nextFile |
| #define startCard __nugget_bios_startCard |
| int __nugget_bios_buFormat | ( | const char * | dev | ) |
| int __nugget_bios_erase | ( | const char * | name | ) |
| int __nugget_bios_initCard | ( | int | padEnable | ) |
| int __nugget_bios_startCard | ( | void | ) |
| int main | ( | void | ) |