identifying controller type of given hard drive (scsi or ide)
I'm trying to code a small tool in C for identifying the type of controller associated with a given drive in DOS. Specifically I'm trying to automate generation of a LOADLIN command line and I need the program to be able to identify whether the root will be (for example) a /dev/hda device (IDE) or a /dev/sda device (SCSI). Presumably this answer can be derived from something stored in memory. I just need to know where to find it and how the info is formatted. Thanks in advance for any help you can provide.