It is accomplished ...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Executable
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
** Copyright 2001, Travis Geiselbrecht. All rights reserved.
|
||||
** Distributed under the terms of the NewOS License.
|
||||
*/
|
||||
#ifndef _BUS_H
|
||||
#define _BUS_H
|
||||
|
||||
#include <stage2.h>
|
||||
#include <module.h>
|
||||
|
||||
int bus_init(kernel_args *ka);
|
||||
int bus_man_init(kernel_args *ka);
|
||||
|
||||
int bus_register_bus(const char *path);
|
||||
|
||||
typedef struct {
|
||||
module_info minfo;
|
||||
status_t (*rescan)(void);
|
||||
} bus_manager_info;
|
||||
|
||||
typedef struct id_list {
|
||||
uint32 num_ids;
|
||||
uint32 id[0];
|
||||
} id_list;
|
||||
|
||||
#define MAX_DEV_IO_RANGES 8
|
||||
|
||||
typedef struct device {
|
||||
uint32 vendor_id;
|
||||
uint32 device_id;
|
||||
|
||||
uint32 irq;
|
||||
addr base[MAX_DEV_IO_RANGES];
|
||||
addr size[MAX_DEV_IO_RANGES];
|
||||
|
||||
char dev_path[256];
|
||||
} device;
|
||||
|
||||
int bus_find_device(int n, id_list *vendor_ids, id_list *device_ids, device *dev);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user