28 #include <linux/module.h>
51 dev->dev_private = (
void *)dev_priv;
57 static int sis_driver_unload(
struct drm_device *dev)
83 static int sis_driver_open(
struct drm_device *dev,
struct drm_file *
file)
87 DRM_DEBUG_DRIVER(
"\n");
92 file->driver_priv = file_priv;
94 INIT_LIST_HEAD(&file_priv->
obj_list);
106 static struct drm_driver
driver = {
107 .driver_features = DRIVER_USE_AGP | DRIVER_USE_MTRR,
108 .load = sis_driver_load,
109 .unload = sis_driver_unload,
110 .open = sis_driver_open,
116 .fops = &sis_driver_fops,
127 .id_table = pciidlist,
130 static int __init sis_init(
void)
136 static void __exit sis_exit(
void)