vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / kernel / bus_managers / pci / arch / x86 / pci_bios.cpp
blobef34b2be11a6d8c3e395711ce15546d3f1006b0d
1 /*
2 * Copyright 2006, Marcus Overhagen. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "pci_private.h"
8 #include "pci_bios.h"
11 status_t
12 pci_bios_init(void)
14 return B_ERROR;
18 status_t
19 pci_bios_read_config(void *cookie, uint8 bus, uint8 device, uint8 function,
20 uint16 offset, uint8 size, uint32 *value)
22 return B_ERROR;
26 status_t
27 pci_bios_write_config(void *cookie, uint8 bus, uint8 device, uint8 function,
28 uint16 offset, uint8 size, uint32 value)
30 return B_ERROR;
34 status_t
35 pci_bios_get_max_bus_devices(void *cookie, int32 *count)
37 *count = 32;
38 return B_OK;