Newsgroups: comp.sys.ibm.pc.hardware.storage
From: Haroldo Sotomayor <hsot...@hotmail.com.NO.SPAM>
Date: 1997/11/17
Subject: Re: HD manufacturer/serial#
Look at this program: idediag.c: /******************************************************************** #include "1010_hdc.h" unsigned secbuf[256]; struct { } idetypes[] = { { 667, 4, 33, "Fujitsu M2611T (42.9 MB)" }, { 667, 8, 33, "Fujitsu M2612T (85.9 MB)" }, { 667, 12, 33, "Fujitsu M2613T (128.9 MB)" }, { 667, 16, 33, "Fujitsu M2614T (171.9 MB)" }, { 782, 2, 27, "Western Digital WD93024-A (20.6 MB)" }, { 782, 4, 27, "Western Digital WD93044-A (41.2 MB)" }, { 845, 3, 35, "Toshiba MK232FC (45.4 MB"}, { 845, 7, 35, "Toshiba MK234FC (106 MB"}, { 965, 5, 17, "Quantum ProDrive 40AT (40 MB)"}, { 965, 10, 17, "Quantum ProDrive 80AT (80 MB)"}, {1050, 2, 40, "Teac SD-340 (41 MB)"}, { 776, 8, 33, "Conner CP-3104 (100 MB)"}, { 745, 4, 28, "Priam 3804M 40.7 MB"}, { 944, 14, 40, "Quantum LPS270A (270 MB)"}, { 0, 0, 0, ""} }; struct ideinfo { unsigned genconf, fixcyls, remcyls, heads, bytetrack, /* bytes per track */ bytesector, /* bytes per sector */ sectors, /* sectors per track */ byteisg, /* bytes intesector gap */ byteplo, /* bytes in sync */ worduniq; /* words unique status */ char serial[20]; unsigned contype, /* controller type */ bufsiz, /* buffer size in 512 byte blocks */ byteecc; /* ECC bytes trasferred in read/write long */ char firmware[8], /* firmware revision */ model[40]; /* model ID */ unsigned secsint, /* number of sectors transferred per interrupt */ dblword, /* double word transfer flag */ writepro; /* write protect */ }; printinfo() { struct ideinfo *id = (struct ideinfo *)secbuf; /* get disk type by characteristics */ /* unknow disk */ /* calculate capacity in MB */ /* swap bytes in ASCII fields except for WD disks */ if (i != 4 && i != 5) { for(i=0; i < 10; ++i) { for(i=0; i < 4; ++i) { for(i=0; i < 20; ++i) { printf("Informations for drive %u, %s\n" drive, type, } main() { drive = 0; /* disable interrupt from drive */ /* set up task file parameter */ /* issue read parameters */ /* read up sector */ /* print out info */ } readsect() { int i; /* poll DRQ */ /* read up sector */ } -- 1010_hdc.h: /* read/write */ /* read */ /* write */ /* commands */ #define HDC_FIXED_IRQ 0x02 #define HDC_STATUS_ERROR 0x01 Hope this help Regards, Marcel Wulffraat escribió: > Am looking for a utility program (DOS/W95) which provides
> HD-info, such as serial#, type of HD, production-date, available > cache, etc. and also (maybe) the name of the manufacturer. > Regards, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||