repo.or.cz
/
cbaos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
import cbaos v0.1
[cbaos.git]
/
include
/
device.h
blob
58eb87659ab77b8169206776169052fb4d54c24f
1
#ifndef _DEVICE_H_
2
#define _DEVICE_H_
3
4
#include <list.h>
5
6
struct
driver
;
7
struct
device
{
8
struct
list list
;
9
const char
*
name
;
10
struct
driver
*
drv
;
11
void
*
priv
;
/* private data for device */
12
};
13
14
int
device_register
(
struct
device
*
dev
);
15
void
device_unregister
(
struct
device
*
dev
);
16
struct
device
*
device_find
(
const char
*
name
);
17
18
#endif