XINU
conf.h
Go to the documentation of this file.
1 /* conf.h (GENERATED FILE; DO NOT EDIT) */
2 
3 /* Device switch table declarations */
4 
5 /* Device table entry */
6 struct dentry {
9  char *dvname;
10  devcall (*dvinit) (struct dentry *);
11  devcall (*dvopen) (struct dentry *, char *, char *);
12  devcall (*dvclose)(struct dentry *);
13  devcall (*dvread) (struct dentry *, void *, uint32);
14  devcall (*dvwrite)(struct dentry *, void *, uint32);
15  devcall (*dvseek) (struct dentry *, int32);
16  devcall (*dvgetc) (struct dentry *);
17  devcall (*dvputc) (struct dentry *, char);
18  devcall (*dvcntl) (struct dentry *, int32, int32, int32);
19  void *dvcsr;
20  void (*dvintr)(void);
22 };
23 
24 extern struct dentry devtab[]; /* one entry per device */
25 
26 /* Device name definitions */
27 
28 #define CONSOLE 0 /* type tty */
29 #define GPIO0 1 /* type gpio */
30 #define GPIO1 2 /* type gpio */
31 #define GPIO2 3 /* type gpio */
32 #define GPIO3 4 /* type gpio */
33 #define NULLDEV 5 /* type null */
34 #define ETHER0 6 /* type eth */
35 #define NAMESPACE 7 /* type nam */
36 #define RDISK 8 /* type rds */
37 #define RAM0 9 /* type ram */
38 #define RFILESYS 10 /* type rfs */
39 #define RFILE0 11 /* type rfl */
40 #define RFILE1 12 /* type rfl */
41 #define RFILE2 13 /* type rfl */
42 #define RFILE3 14 /* type rfl */
43 #define RFILE4 15 /* type rfl */
44 #define RFILE5 16 /* type rfl */
45 #define RFILE6 17 /* type rfl */
46 #define RFILE7 18 /* type rfl */
47 #define RFILE8 19 /* type rfl */
48 #define RFILE9 20 /* type rfl */
49 #define LFILESYS 21 /* type lfs */
50 #define LFILE0 22 /* type lfl */
51 #define LFILE1 23 /* type lfl */
52 #define LFILE2 24 /* type lfl */
53 #define LFILE3 25 /* type lfl */
54 #define LFILE4 26 /* type lfl */
55 #define LFILE5 27 /* type lfl */
56 #define SPI0 28 /* type spi */
57 #define SPI1 29 /* type spi */
58 
59 /* Control block sizes */
60 
61 #define Nnull 1
62 #define Ngpio 4
63 #define Ntty 1
64 #define Neth 1
65 #define Nrds 1
66 #define Nram 1
67 #define Nrfs 1
68 #define Nrfl 10
69 #define Nlfs 1
70 #define Nlfl 6
71 #define Nnam 1
72 #define Nspi 2
73 
74 #define NDEVS 30
75 
76 
77 /* Configuration and Size Constants */
78 
79 #define NPROC 100 /* number of user processes */
80 #define NSEM 100 /* number of semaphores */
81 #define IRQBASE 32 /* base ivec for IRQ0 */
82 #define IRQ_TIMER IRQ_HW5 /* timer IRQ is wired to hardware 5 */
83 #define IRQ_ATH_MISC IRQ_HW4 /* Misc. IRQ is wired to hardware 4 */
84 #define CLKFREQ 200000000 /* 200 MHz clock */
85 
86 #define LF_DISK_DEV RAM0
devcall(* dvcntl)(struct dentry *, int32, int32, int32)
Definition: conf.h:18
unsigned char byte
符号なし8ビット値(unsigned char)
Definition: kernel.h:7
devcall(* dvwrite)(struct dentry *, void *, uint32)
Definition: conf.h:14
int32 dvminor
Definition: conf.h:8
devcall(* dvclose)(struct dentry *)
Definition: conf.h:12
devcall(* dvputc)(struct dentry *, char)
Definition: conf.h:17
devcall(* dvinit)(struct dentry *)
Definition: conf.h:10
Definition: conf.h:6
struct dentry devtab[]
Definition: conf.c:11
devcall(* dvopen)(struct dentry *, char *, char *)
Definition: conf.h:11
devcall(* dvgetc)(struct dentry *)
Definition: conf.h:16
int int32
符号あり32ビット整数(int)
Definition: kernel.h:11
int32 dvnum
Definition: conf.h:7
devcall(* dvread)(struct dentry *, void *, uint32)
Definition: conf.h:13
byte dvirq
Definition: conf.h:21
char * dvname
Definition: conf.h:9
devcall(* dvseek)(struct dentry *, int32)
Definition: conf.h:15
unsigned int uint32
符号なし32ビット整数(unsigned int)
Definition: kernel.h:15
int32 devcall
デバイスコール関数 返り値の型
Definition: kernel.h:49
void * dvcsr
Definition: conf.h:19
void(* dvintr)(void)
Definition: conf.h:20