Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.development > #9230
| From | "Benjamin David Lunt" <zfysz@fysnet.net> |
|---|---|
| Newsgroups | alt.os.development |
| Subject | Re: The ATA is ignoring my driver |
| Date | 2016-03-01 16:45 -0700 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nb5bmk$5aa$1@gioia.aioe.org> (permalink) |
| References | <834280f5-9052-4ec9-aea3-0fd35b384507@googlegroups.com> |
[ With the 'posting etiquette' discussion in other threads/groups I'm sorry for the top post. Outlook Express doesn't add the '>' to some replies. :-) ] Just a quick question. Are you reading the Status byte or the Alternate Status byte when checking for a 'done' state? You should only read the Status byte after an IRQ, while reading the Alternate Status byte any other time. Just curious. Ben -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Forever Young Software http://www.fysnet.net/index.htm http://www.fysnet.net/osdesign_book_series.htm To reply by email, please remove the zzzzzz's Batteries not included, some Assembly required. "Isaac D. Cohen" <8switchsoftware@gmail.com> wrote in message news:834280f5-9052-4ec9-aea3-0fd35b384507@googlegroups.com... Hi, I have a strange problem with my ATA driver. After resetting the drive I send the command to get the identification block and it fires an IRQ (as it is supposed to). But when I'm done reading the block through port 0x170, and the DRQ bit is clear, no IRQ comes. I can read from the ATA device, but no IRQs will fire. I have to figure out when it's ready by polling. If I try reading the identification block again, no IRQ will fire even right after sending the command before reading the data (it does the first time). In other words, after that first IRQ, the drive will no longer send IRQs. With ATAPI the problem gets even stranger. The first part is the same. An IRQ fires when I send the command to get the identification block, but no IRQ fires when I finish reading it. But when I try to read using the packet interface, things get worse. I send the command to send a packet (0xA0) and it doesn't send an IRQ, but at least it sets DRQ. However, once I send the packet the drive completely ignores me. No IRQ fires, DRQ is clear, and nothing happens. I'm not sure if these two problems (i.e. no IRQs and ATAPI doing nothing) are interrelated, but I'd appreciate if anyone can point out what may be causing either problem. I'm using bochs, so the problem is obviously in my code. But I'm not sure where in my code, and there would be a lot to post if I posted it all, so if you want to see a certain part let me know and I can post it. Thank you very much, Isaac D. Cohen "Legitimate use of violence can only be that which is required in self-defense." - Ron Paul
Back to alt.os.development | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
The ATA is ignoring my driver "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-03-01 14:29 -0800
Re: The ATA is ignoring my driver "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-03-01 16:45 -0700
Re: The ATA is ignoring my driver "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-03-01 19:40 -0800
Re: The ATA is ignoring my driver "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-03-01 23:41 -0700
Re: The ATA is ignoring my driver "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-03-02 21:21 -0800
Re: The ATA is ignoring my driver "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-03-03 12:15 -0700
Re: The ATA is ignoring my driver "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-03-06 18:45 -0800
Re: The ATA is ignoring my driver "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-03-07 08:07 -0700
Re: The ATA is ignoring my driver "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-03-07 10:35 -0800
Re: The ATA is ignoring my driver "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-03-08 11:43 -0700
Re: The ATA is ignoring my driver "Isaac D. Cohen" <8switchsoftware@gmail.com> - 2016-03-09 07:44 -0800
Re: The ATA is ignoring my driver "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-03-09 12:04 -0700
csiph-web