ref: 8bf20d26099e2e78abb8a02bfc49ee563aa4a55e
dir: /sys/src/9/omap/dat.h/
typedef struct Conf Conf;
typedef struct Confmem Confmem;
typedef struct FPalloc FPalloc;
typedef struct FPsave FPsave;
typedef struct Label Label;
typedef struct Lock Lock;
typedef struct Mach Mach;
typedef struct MFPU MFPU;
typedef struct MMMU MMMU;
typedef struct Page Page;
typedef struct Proc Proc;
typedef struct PFPU PFPU;
typedef struct PMMU PMMU;
typedef struct Ureg Ureg;
typedef u32int PTE;
typedef uvlong Tval;
#pragma incomplete Ureg
#define MAXSYSARG 5
#define AOUT_MAGIC (E_MAGIC)
struct Lock {
ulong key;
u32int sr;
uintptr pc;
Proc *p;
Mach *m;
int isilock;
};
struct Label {
uintptr sp;
uintptr pc;
};
struct Confmem {
uintptr base;
uintptr limit;
uintptr kbase;
uintptr klimit;
ulong npage;
};
struct Conf {
ulong nmach;
ulong nproc;
Confmem mem[1];
ulong npage;
ulong upages;
ulong copymode;
ulong ialloc;
ulong pipeqsize;
ulong nimage;
ulong nswap;
int nswppo;
int monitor;
};
struct FPsave {
ulong exc;
ulong scr;
uchar regs[256];
};
struct FPalloc {
FPsave;
FPalloc *link;
};
struct PFPU {
int fpstate;
int kfpstate;
FPalloc *fpsave;
FPalloc *kfpsave;
};
struct MFPU {
int fpstate;
FPalloc *fpsave;
};
enum {
FPinit,
FPactive,
FPprotected,
FPinactive,
FPnotify = 0x100,
};
#define NCOLOR 1
struct PMMU {
Page *mmul2;
Page *mmul2cache;
};
struct MMMU {
PTE *mmul1;
uint mmupid;
};
#include "../port/portdat.h"
struct Mach {
int machno;
uintptr splpc;
Proc *proc;
MFPU;
MMMU;
PMach;
u32int save[5];
uintptr stack[1];
};
typedef struct ISAConf ISAConf;
typedef struct Devport Devport;
typedef struct DevConf DevConf;
#define BUSUNKNOWN 0
#define BUSMODEM 1
#define NISAOPT 8
struct ISAConf {
char *type;
uintptr port;
int irq;
ulong dma;
ulong mem;
ulong size;
ulong freq;
int nopt;
char *opt[NISAOPT];
};
struct Devport {
ulong port;
int size;
};
struct DevConf {
ulong intnum;
char *type;
int nports;
Devport *ports;
};
typedef void KMap;
#define VA(p) ((uintptr)(p))
#define kmap(p) (KMap*)((p)->pa|KZERO)
#define kunmap(p)
#define kmapinval()
#define getpgcolor(p) 0
struct {
char machs[MAXMACH];
int exiting;
} active;
extern register Mach *m;
extern register Proc *up;