Re: Add three new IOCTLs to FB API
flat view
From: Kronos <hidden>
Date: 2003-09-23 16:36:31
Il Mon, Sep 22, 2003 at 04:18:15PM -0700, Ian Romanick ha scritto:
quoted
quoted
2) Get 3D driver name. Return the name of the DRM driver that is associated with this fb device. For example aty128fb would return r128, radeonfb would return radeon. Empty string if there is none. There are eight DRM drivers and 15 fb ones.I think this should be done using sysfs, too. I.e. symbolic links between the fbdev and drm drivers in /sys.I'm not that familiar with how sysfs works. How would this look? There'd be a tree like: /sys/ card0/
Actually it will be /sys/graphics/fb0
dri.so (link to client-side driver)
Userspace library? We can put the name here, not a symlink to the library. sysfs deals only with kobjects (ie. things that live somewhere in the kernel). We can create link between two kobjects (see sysfs_create_link) but not between a kobject and something else.
DRM_device (link to DRM device that will load kernel module)
Do you mean device under /dev? Can't do that, see above. We can put module name, so a user can do: modprobe `cat /sys/graphics/fb0/drm_module`
PCI_INFO (file containing PCI device information)
Under /sys/graphics/fb0 there will be a "device" symlink. This will take you to the device dir: root@dreamland:/sys/bus/pci/devices/0000:01:00.0# ls class config detach_state device irq power/ resource subsystem_device subsystem_vendor vendor root@dreamland:/sys/bus/pci/devices/0000:01:00.0# cat vendor device subsystem_vendor subsystem_device 0x1002 0x4e45 0x1681 0x0002 You can get everything from here without the need to add another attribute. Luca -- Reply-To: kronos@kronoz.cjb.net Home: http://kronoz.cjb.net Ci sono due cose che l'uomo non puo` nascondere: essere ubriaco ed essere innamorato. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf