dev: implement bus device enumeration

This commit is contained in:
2023-06-09 21:24:51 +01:00
parent 27387aa080
commit 20f77893cf
4 changed files with 65 additions and 2 deletions

View File

@@ -92,6 +92,7 @@ struct input_device {
};
struct bus_device {
struct queue_entry b_buslist;
struct bus_device_ops *b_ops;
};
@@ -175,6 +176,7 @@ extern kern_status_t device_write(struct device *dev, const void *buf, size_t si
extern struct device *cast_to_device(struct object *obj);
extern struct device *generic_device_create(void);
extern struct char_device *char_device_create(void);
extern struct block_device *block_device_create(void);
extern struct net_device *net_device_create(void);
@@ -247,4 +249,6 @@ static inline void driver_unlock_irqrestore(struct driver *driver, unsigned long
spin_unlock_irqrestore(&driver->drv_lock, flags);
}
extern kern_status_t scan_all_buses(void);
#endif