agptarget.c revision 3695222e2a2e1ff9d1f12560f85ffdffcf78c69f
970N/Aint agptarget_debug_var = 0;
970N/Atypedef struct agp_target_softstate {
970N/Astatic void *agptarget_glob_soft_handle;
return (aper_base);
static size_t
case AGP_APER_4M:
case AGP_APER_8M:
case AGP_APER_16M:
case AGP_APER_32M:
case AGP_APER_64M:
case AGP_APER_128M:
case AGP_APER_256M:
case AGP_APER_512M:
case AGP_APER_1024M:
case AGP_APER_2048M:
case AGP_APER_4G:
regsize));
return (size);
static size_t
case INTEL_BR_810:
case INTEL_BR_810DC:
case INTEL_BR_810E:
case INTEL_BR_830M:
case INTEL_BR_845:
case I8XX_GC_MODE2:
case I8XX_GC_MODE3:
case I8XX_GC_MODE4:
case INTEL_BR_855GM:
case I8XX_GC_MODE1:
case I8XX_GC_MODE2:
case I8XX_GC_MODE3:
case I8XX_GC_MODE4:
case I8XX_GC_MODE5:
case INTEL_BR_865:
case INTEL_BR_910M:
case I8XX_GC_MODE1:
case I8XX_GC_MODE3:
case I8XX_GC_MODE4:
case INTEL_BR_910:
case INTEL_BR_945:
case I8XX_GC_MODE1:
case I8XX_GC_MODE3:
kbytes = 0;
return (kbytes);
switch (cmd) {
case DDI_INFO_DEVT2DEVINFO:
case DDI_INFO_DEVT2INSTANCE:
return (rval);
int instance;
int status;
return (DDI_FAILURE);
return (DDI_FAILURE);
return (DDI_FAILURE);
return (DDI_FAILURE);
return (DDI_FAILURE);
return (DDI_SUCCESS);
int instance;
return (DDI_FAILURE);
return (DDI_SUCCESS);
static char kernel_only[] =
return (ENXIO);
return (ENXIO);
switch (cmd) {
case CHIP_DETECT:
int type;
case INTEL_VENDOR_ID:
case AMD_VENDOR_ID:
type = 0;
return (EFAULT);
case I8XX_GET_PREALLOC_SIZE:
return (EINVAL);
return (EFAULT);
case AGP_TARGET_GETINFO:
return (EFAULT);
case AGP_TARGET_SET_GATTADDR:
return (EFAULT);
case AGP_TARGET_SETCMD:
return (EFAULT);
command);
case AGP_TARGET_FLUSH_GTLB:
case AGP_TARGET_CONFIGURE:
case AGP_TARGET_UNCONFIG:
value1);
return (ENXIO);
return (ENXIO);
return (ENXIO);
return (ENXIO);
_init(void)
int ret;
if (ret)
goto err1;
goto err2;
return (DDI_SUCCESS);
err2:
err1:
return (ret);
_fini(void)
int ret;
return (ret);