git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed and cleaned up export header files to match linux convention
[lunaix-os.git]
/
lunaix-os
/
kernel
/
device
/
devdb.c
diff --git
a/lunaix-os/kernel/device/devdb.c
b/lunaix-os/kernel/device/devdb.c
index a2483788069aef3f4ff8b209081df8a696c5b81b..42452f859899acead12d94cf50ba3196919aa1c0 100644
(file)
--- a/
lunaix-os/kernel/device/devdb.c
+++ b/
lunaix-os/kernel/device/devdb.c
@@
-59,6
+59,8
@@
device_scan_drivers()
llist_append(&dev_registry_flat, &devdef->dev_list);
}
llist_append(&dev_registry_flat, &devdef->dev_list);
}
+
+ INFO("%d drivers registered", idx + 1);
}
static int
}
static int
@@
-131,7
+133,7
@@
device_sysconf_load()
}
static int
}
static int
-__
devdb_db_gonext
(struct twimap* mapping)
+__
twimap_gonext_devtab
(struct twimap* mapping)
{
struct device_def* current = twimap_index(mapping, struct device_def*);
if (current->dev_list.next == &dev_registry_flat) {
{
struct device_def* current = twimap_index(mapping, struct device_def*);
if (current->dev_list.next == &dev_registry_flat) {
@@
-143,7
+145,7
@@
__devdb_db_gonext(struct twimap* mapping)
}
static void
}
static void
-__
devdb_twifs_lsd
b(struct twimap* mapping)
+__
twimap_read_devta
b(struct twimap* mapping)
{
char flags[64];
struct device_def* def = twimap_index(mapping, struct device_def*);
{
char flags[64];
struct device_def* def = twimap_index(mapping, struct device_def*);
@@
-159,8
+161,8
@@
__devdb_twifs_lsdb(struct twimap* mapping)
flags);
}
flags);
}
-void
-__
devdb_reset
(struct twimap* map)
+
static
void
+__
twimap_reset_devtab
(struct twimap* map)
{
map->index =
container_of(dev_registry_flat.next, struct device_def, dev_list);
{
map->index =
container_of(dev_registry_flat.next, struct device_def, dev_list);
@@
-169,9
+171,6
@@
__devdb_reset(struct twimap* map)
static void
devdb_twifs_plugin()
{
static void
devdb_twifs_plugin()
{
- struct twimap* map = twifs_mapping(NULL, NULL, "devtab");
- map->reset = __devdb_reset;
- map->read = __devdb_twifs_lsdb;
- map->go_next = __devdb_db_gonext;
+ twimap_export_list(NULL, devtab, FSACL_aR, NULL);
}
EXPORT_TWIFS_PLUGIN(devdb, devdb_twifs_plugin);
\ No newline at end of file
}
EXPORT_TWIFS_PLUGIN(devdb, devdb_twifs_plugin);
\ No newline at end of file