| plan 9 kernel history: overview | file list | diff list |
2001/0905/port/sd.h (diff list | history)
| 2001/0527/sys/src/9/port/sd.h:46,62 – 2001/0905/sys/src/9/port/sd.h:46,69 (short | long | prev | next) | ||
|
In SDev: add Ref, change unit number. In SDifc, add probe, clear, stat.
rsc Fri Mar 4 12:44:25 2005 | ||
| 2000/1129 | Log log; | |
| 2000/0506 | } SDunit; | |
| 2001/0905 | /* * Each controller is represented by a SDev, each controller is responsible * for allocating its unit structures. */ | |
| 2000/0506 | typedef struct SDev { | |
| 2001/0905 | Ref r; /* Number of callers using device */ | |
| 2000/0506 | SDifc* ifc; /* pnp/legacy */ void *ctlr; int idno; | |
| 2001/0527 | char *name; | |
| 2000/0506 |
| |
| 2001/0905 | int nunit; /* Number of units */ QLock unitlock; /* `Loading' of units */ int *unitflg; /* Unit flags */ SDunit **unit; /* Each controller has at least one unit */ | |
| 2000/0506 | } SDev; typedef struct SDifc { | |
| 2001/0527/sys/src/9/port/sd.h:75,80 – 2001/0905/sys/src/9/port/sd.h:82,90 | ||
| 2000/0506 | int (*wctl)(SDunit*, Cmdbuf*); long (*bio)(SDunit*, int, int, void*, long, long); | |
| 2001/0905 | SDev* (*probe)(DevConf *); void (*clear)(SDev *); char* (*stat)(SDev*, char*, char*); | |
| 2000/0506 | } SDifc; typedef struct SDreq { | |