added some missing functions and definitions for FreeBSD 8.2
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42314 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -454,6 +454,22 @@ bus_generic_shutdown(device_t dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
bus_print_child_header(device_t dev, device_t child)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED();
|
||||||
|
return B_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
bus_print_child_footer(device_t dev, device_t child)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED();
|
||||||
|
return B_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
bus_generic_print_child(device_t dev, device_t child)
|
bus_generic_print_child(device_t dev, device_t child)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -175,6 +175,35 @@ device_get_parent(device_t dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
device_get_children(device_t dev, device_t **devlistp, int *devcountp)
|
||||||
|
{
|
||||||
|
int count;
|
||||||
|
device_t child = NULL;
|
||||||
|
device_t *list;
|
||||||
|
|
||||||
|
count = 0;
|
||||||
|
while (list_get_next_item(&dev->children, child) != NULL) {
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
|
||||||
|
list = malloc(count * sizeof(device_t));
|
||||||
|
if (!list)
|
||||||
|
return (ENOMEM);
|
||||||
|
|
||||||
|
count = 0;
|
||||||
|
while ((child = list_get_next_item(&dev->children, child)) != NULL) {
|
||||||
|
list[count] = child;
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
|
||||||
|
*devlistp = list;
|
||||||
|
*devcountp = count;
|
||||||
|
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
device_set_ivars(device_t dev, void *ivars)
|
device_set_ivars(device_t dev, void *ivars)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -149,6 +149,8 @@ uint64_t ifmedia_baudrate(int);
|
|||||||
/* note 31 is the max! */
|
/* note 31 is the max! */
|
||||||
|
|
||||||
#define IFM_ETH_MASTER 0x00000100 /* master mode (1000baseT) */
|
#define IFM_ETH_MASTER 0x00000100 /* master mode (1000baseT) */
|
||||||
|
#define IFM_ETH_RXPAUSE 0x00000200 /* receive PAUSE frames */
|
||||||
|
#define IFM_ETH_TXPAUSE 0x00000400 /* transmit PAUSE frames */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Token ring
|
* Token ring
|
||||||
|
|||||||
Reference in New Issue
Block a user