/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* skeleton hub driver, the actual code is in hubdi.c
* as it is shared between the root hub and the other hub instances
*/
#endif
hubd_open, /* open */
hubd_close, /* close */
nodev, /* strategy */
nodev, /* print */
nodev, /* dump */
nodev, /* read */
nodev, /* write */
hubd_ioctl, /* ioctl */
nodev, /* devmap */
nodev, /* mmap */
nodev, /* segmap */
nochpoll, /* poll */
ddi_prop_op, /* cb_prop_op */
NULL, /* streamtab */
D_MP /* Driver compatibility flag */
};
DEVO_REV, /* devo_rev, */
0, /* refcnt */
hubd_info, /* info */
nulldev, /* identify */
nulldev, /* probe */
usba_hubdi_attach, /* attach */
usba_hubdi_detach, /* detach */
nodev, /* reset */
&hubd_cb_ops, /* driver operations */
&usba_hubdi_busops, /* bus operations */
usba_hubdi_power, /* power */
ddi_quiesce_not_needed, /* quiesce */
};
&mod_driverops, /* Type of module. This one is a driver */
"USB Hub Driver", /* Name of the module. */
&hubd_ops, /* driver ops */
};
};
extern void *hubd_statep;
int
_init(void)
{
int rval;
/* Initialize the soft state structures */
sizeof (hubd_t), HUBD_INITIAL_SOFT_SPACE)) != 0) {
return (rval);
}
return (rval);
}
return (rval);
}
int
_fini(void)
{
if (rval == 0) {
}
return (rval);
}
int
{
}
static dev_info_t *
{
if (hubd) {
} else {
return (NULL);
}
}
/*
* info handler
*/
/*ARGSUSED*/
int
{
int instance;
switch (infocmd) {
case DDI_INFO_DEVT2DEVINFO:
error = DDI_SUCCESS;
}
break;
case DDI_INFO_DEVT2INSTANCE:
error = DDI_SUCCESS;
break;
default:
break;
}
return (error);
}
static int
{
}
static int
{
}
static int
{
}