2006/9/11, Marcus Overhagen <marcusoverhagen@xxxxxxxx>:
Jérôme Duval <korli@xxxxxxxxxxxxxxxx> wrote:
> > 1) > > I want it to load the silicon_image_3112 ide bus driver for PCI cards with > > vendor id 1095 > > and device id 3112 or 3114. With Thomas Kurschels original system this was > > done using BFS attributes. How does it work with Haiku? > > > out of curiosity, why didn't you implement supports_device() for your ide > module ?
Because the original API the driver was written to didn't have such a function, and the Promise TX2 driver also doesn't implement it. So I assumed there is some other way to connect it with the device manager.
I might be wrong, but I don't think the promise TX2 driver in our repository is really working at the moment. I would suggest to follow the generic_ide_pci driver, as it is known to work.
And I think I had to implement supports_device() too in the scsi_cd driver to have it loaded properly. See :
http://svn.berlios.de/viewcvs/haiku/haiku/trunk/src/add-ons/kernel/drivers/disk/scsi/scsi_cd/scsi_cd.c?rev=14125&view=diff&r1=14125&r2=14124&p1=haiku/trunk/src/add-ons/kernel/drivers/disk/scsi/scsi_cd/scsi_cd.c&p2=/haiku/trunk/src/add-ons/kernel/drivers/disk/scsi/scsi_cd/scsi_cd.c
Bye, Jérôme