Thread View: comp.lang.asm.x86
4 messages
4 total messages
Started by Allen Te
Mon, 11 Mar 1996 18:55
Tough Question: Get a Hard-disk's Brand/Model No....
Author: Allen Te
Date: Mon, 11 Mar 1996 18:55
Date: Mon, 11 Mar 1996 18:55
14 lines
893 bytes
893 bytes
I've seen a few programs that are actually able to detect
a hard-disk's brand/model.
Eg, Conners AP540, Maxtor MT1200 etc....
Is that possible using some interrupts? Can someone give
me some source for doing that?
Thanks.
Allen
PS: pls kindly send a copy of the source to my email account too.
I've lots of trouble getting into newsgroups 'cos of slow
connection.
Re: Tough Question: Get a Hard-disk's Brand/Model No....
Author: Robert Fry
Date: Thu, 14 Mar 1996 16:27
Date: Thu, 14 Mar 1996 16:27
17 lines
1078 bytes
1078 bytes
Allen Te <pcdirect@pacific.net.sg> writes: >I've seen a few programs that are actually able to detect >a hard-disk's brand/model. >Eg, Conners AP540, Maxtor MT1200 etc.... >Is that possible using some interrupts? Can someone give >me some source for doing that? First off, this is a DOS-specific question. I see you posted to several groups -- I believe comp.os.msdos.programmer might be a good one to add your question to. However, I believe your answer is specific to the type of bus you're using. (Probably IDE or SCSI). I know that SCSI has a command to fetch device information, and you can find what you need from any decent SCSI protocol manual.
Re: Tough Question: Get a Hard-disk's Brand/Model No....
Author: Yousuf Khan
Date: Tue, 26 Mar 1996 02:45
Date: Tue, 26 Mar 1996 02:45
24 lines
1477 bytes
1477 bytes
Allen Te <pcdirect@pacific.net.sg> wrote: >I've seen a few programs that are actually able to detect >a hard-disk's brand/model. >Eg, Conners AP540, Maxtor MT1200 etc.... >Is that possible using some interrupts? Can someone give >me some source for doing that? It's not possible with any standard interrupt services -- it's too specialized to bother to implement as some kind of an operating system API function. You would have to go into I/O ports that control the hard disk directly. Actually, I lie. You can do it through the API functions in SCSI device drivers, I believe. In IDE, you have to implement the port accesses yourself. I think I got some source code here, but it'll take some time for me to rummage around on how to do it. In the meantime, if somebody else can come up with the sources, then I can stop my rummaging, and I can use yours. :-) In other words, don't hold your breath on whether I can find the source code quickly. Yousuf Khan
Re: Tough Question: Get a Hard-disk's Brand/Model No....
Author: Monts
Date: Mon, 01 Apr 1996 15:13
Date: Mon, 01 Apr 1996 15:13
40 lines
2024 bytes
2024 bytes
In article <4j7m0g$lp6@centaur.achilles.net>,
Yousuf Khan <ykhan@achilles.net> wrote:
>Allen Te <pcdirect@pacific.net.sg> wrote:
>
>>I've seen a few programs that are actually able to detect
>>a hard-disk's brand/model.
>>Eg, Conners AP540, Maxtor MT1200 etc....
>
>>Is that possible using some interrupts? Can someone give
>>me some source for doing that?
>
>It's not possible with any standard interrupt services -- it's too
>specialized to bother to implement as some kind of an operating system
>API function. You would have to go into I/O ports that control the
>hard disk directly.
It's not too difficult at all from what I remember, just a matter of
setting the drive up to do a read and then reading off the information
block.
one thing though, how do you tell what irq line / port address the
controller(s) are running off in an EIDE system? I was pondering
on that one a while back and couldn't come up with a good answer...
(what I really need is a way of telling which is the primary and
which is the secondary controller)
(email would be great if anyone can come up with a good answer,
I'm *still* stuck accessing the 'net at the colossal rate of
2400 baud... :)
cheers
Jules
--
<9~ .. .. ---.. .. .--..--- .. .. <9~
(W) ___.' ` ' ` .- || || |-- `--. -. ' ` ' `.___ (W)
`..' `..' __.'`._.'`.__`._.__.' `..' `..'
Julian Richardson * University of Kent
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads