tphci.c revision 5e3986cb9bc07bde1dfa1a7028d5ad3e501abae4
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A dev_info_t **);
2N/Astatic void *tphci_state;
2N/Astruct tphci_state {
&modldrv,
_init(void)
int rval;
return (rval);
return (rval);
_fini(void)
int rval;
return (rval);
return (rval);
return (EINVAL);
return (ENXIO);
return (EINVAL);
return (ENXIO);
char *vclass;
switch (cmd) {
case DDI_ATTACH:
case DDI_RESUME:
case DDI_PM_RESUME:
return (DDI_FAILURE);
return (DDI_FAILURE);
goto attach_fail;
goto attach_fail;
phci_regis++;
goto attach_fail;
return (DDI_SUCCESS);
if (phci_regis)
return (DDI_FAILURE);
switch (cmd) {
case DDI_DETACH:
case DDI_SUSPEND:
case DDI_PM_SUSPEND:
return (DDI_FAILURE);
return (DDI_FAILURE);
return (DDI_SUCCESS);
switch (cmd) {
case DDI_INFO_DEVT2DEVINFO:
return (DDI_FAILURE);
case DDI_INFO_DEVT2INSTANCE:
return (DDI_FAILURE);
return (DDI_SUCCESS);
return (DDI_FAILURE);
switch (ctlop) {
case DDI_CTLOPS_REPORTDEV:
return (DDI_FAILURE);
return (DDI_SUCCESS);
case DDI_CTLOPS_INITCHILD:
case DDI_CTLOPS_UNINITCHILD:
case DDI_CTLOPS_DMAPMAPC:
case DDI_CTLOPS_REPORTINT:
case DDI_CTLOPS_REGSIZE:
case DDI_CTLOPS_NREGS:
case DDI_CTLOPS_SIDDEV:
case DDI_CTLOPS_SLAVEONLY:
case DDI_CTLOPS_AFFINITY:
case DDI_CTLOPS_POKE:
case DDI_CTLOPS_PEEK:
return (DDI_FAILURE);
case DDI_CTLOPS_ATTACH:
case DDI_CTLOPS_BTOP:
case DDI_CTLOPS_BTOPR:
case DDI_CTLOPS_DETACH:
case DDI_CTLOPS_DVMAPAGESIZE:
case DDI_CTLOPS_IOMIN:
case DDI_CTLOPS_POWER:
case DDI_CTLOPS_PTOB:
return (DDI_SUCCESS);
return (DDI_SUCCESS);
char *tmp;
switch (op) {
case BUS_CONFIG_ONE:
case BUS_CONFIG_ALL:
return (NDI_SUCCESS);
return (NDI_FAILURE);
(char *)arg);
return (NDI_FAILURE);
return (NDI_FAILURE);
return (NDI_FAILURE);
if (childp) {
return (NDI_SUCCESS);
int circ;
switch (op) {
case BUS_UNCONFIG_ONE:
if (pip) {
case BUS_UNCONFIG_ALL:
return (NDI_FAILURE);
return (NDI_SUCCESS);
return (NDI_FAILURE);