Floppy Controller Variations

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
partis
Posts: 7
Joined: Thu Mar 26, 2009 4:15 pm
Location: Newcastle, UK
Contact:

Floppy Controller Variations

Post by partis »

Hi all,

I just purchased an old Toshiba Libretto 100CT from eBay for OS testing, but it has a non-standard floppy interface...

It is a PCMCIA floppy, which has a normal FDC IC, but it uses PIO, IRQ#15 and IO at 0x3a8.

I can easily fudge my floppy driver to handle this, but I'd rather be able to pick up the true access parameters via an automated method at boot time.

Are there any 'hidden' BIOS calls for returning FDC access parameters such as IO address etc - even if it is on a model-by-model or company-by-company basis?

Thanks in advance

Gary Partis
Selenic
Member
Member
Posts: 123
Joined: Sat Jan 23, 2010 2:56 pm

Re: Floppy Controller Variations

Post by Selenic »

partis wrote:Are there any 'hidden' BIOS calls for returning FDC access parameters such as IO address etc - even if it is on a model-by-model or company-by-company basis?
RBIL is always useful for that type of stuff, including model-specific calls. A quick look turns up this and this, which both look promising. Failing that, you can always just fall back to using BIOS calls if you're told that there is a floppy but can't find it.
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: Floppy Controller Variations

Post by bewing »

AFAIK, PCMCIA has a device enumeration scheme that is somewhat similar to PCI. So, I think you need to have a driver for the pcmcia controller, use it to access the pcmcia bus, get the configuration spaces of all the devices on it, discover that one is a floppy controller, and read its access parameters. But hopefully Selenic's method is easier.
partis
Posts: 7
Joined: Thu Mar 26, 2009 4:15 pm
Location: Newcastle, UK
Contact:

Re: Floppy Controller Variations

Post by partis »

Hiya

Many thanks :-)

I would have prefered the quick and simple BIOS solution, but it appears to be a non-starter... :-(

Instead, I am going to enumerate the PCMCIA slots looking for a floppy drive adapter; but I suppose I'll use the same code to check for other devices at boot time, such as HDD devices (CF/MicroDrive etc) and serial ports etc.

Thanks again

Gary Partis
Post Reply