2019-12-06 23:45:04 +01:00
|
|
|
#ifndef __KERNEL_DEVICES_UBC_H__
|
|
|
|
# define __KERNEL_DEVICES_UBC_H__
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2019-12-07 15:51:12 +01:00
|
|
|
struct ubc_context_s
|
2019-12-06 23:45:04 +01:00
|
|
|
{
|
|
|
|
uint32_t reg[16];
|
|
|
|
uint32_t gbr;
|
|
|
|
uint32_t macl;
|
|
|
|
uint32_t mach;
|
|
|
|
uint32_t ssr;
|
|
|
|
uint32_t spc;
|
2019-12-07 15:51:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct ubc_session_s
|
|
|
|
{
|
|
|
|
struct {
|
|
|
|
struct {
|
|
|
|
uint32_t cursor;
|
|
|
|
} context;
|
|
|
|
struct {
|
|
|
|
uint32_t cursor;
|
|
|
|
} disassembly;
|
|
|
|
} menu;
|
|
|
|
struct ubc_context_s *context;
|
|
|
|
unsigned int key;
|
|
|
|
int channel;
|
|
|
|
} ubc_session_t;
|
2019-12-06 23:45:04 +01:00
|
|
|
|
|
|
|
// Primitives.
|
|
|
|
extern int ubc_open(void);
|
|
|
|
extern int ubc_close(void);
|
|
|
|
|
|
|
|
#endif /*__KERNEL_DEVICES_UBC_H__*/
|