typedef struct Mach Mach;
typedef struct Page Page;
typedef struct PhysUart PhysUart;
+typedef struct Pcidev Pcidev;
typedef struct PMMU PMMU;
typedef struct Proc Proc;
typedef u64int PTE;
typedef uvlong Tval;
typedef void KMap;
+#pragma incomplete Pcidev
#pragma incomplete Ureg
#define MAXSYSARG 5 /* for mount(fd, mpt, flag, arg, srv) */
*/
struct MMMU
{
- PTE* mmul1; /* l1 for this processor */
+ PTE* mmutop; /* first level user page table */
};
/*
struct Soc { /* SoC dependent configuration */
ulong dramsize;
- uintptr physio;
uintptr busdram;
+ ulong iosize;
uintptr busio;
+ uintptr physio;
+ uintptr virtio;
uintptr armlocal;
- u32int l1ptedramattrs;
- u32int l2ptedramattrs;
+ uintptr pciwin;
};
extern Soc soc;
-#define BUSUNKNOWN -1
-
/*
* GPIO
*/