I have found that BIOS information location IIRC is at 0xffff:0x0005.
Anyone of you ever tried?
I have found that BIOS information location IIRC is at 0xffff:0x0005.
Anyone of you ever tried?
[ Never code before desk work ]
-------------------------------------:-->
A man who fears Nothing is the man who Loves Nothing
If you Love Nothing, what joy is there in your life.
=------------------------------------------------------= - I may be wrong.
What about in Linux, can you through me some sample code. Salem, can you tell me if I will be able to get serial number of any devices like
scsi hard disk / main board ? As you will see me asked at another thread.
Copy Protection using Serial Numbers (SCSI Disk / Processor / BIOS / Mainboard)
#/sbin/hdparm -i /dev/hda
Provides information on Hard Disk Drive /dev/hda including the serial number.
Do you have any idea of getting those serial numbers using C?
Last edited by zahid; 03-18-2003 at 05:15 AM.
[ Never code before desk work ]
-------------------------------------:-->
A man who fears Nothing is the man who Loves Nothing
If you Love Nothing, what joy is there in your life.
=------------------------------------------------------= - I may be wrong.
Well, ask in the Linux programming board, your question is plataform-specific.What about in Linux
Originally posted by Salem
Yeah, you look in the source code for "/sbin/hdparm", since you can get the source code for every single tool on Linux
/* device types */
/* ------------ */
#define NO_DEV 0xffff
#define ATA_DEV 0x0000
#define ATAPI_DEV 0x0001
what will be for scsi hard disk.
$ cat /proc/scsi/aic7xxx/0
Adaptec AIC7xxx driver version: 5.1.33/3.2.4
Compile Options:
TCQ Enabled By Default : Disabled
AIC7XXX_PROC_STATS : Disabled
AIC7XXX_RESET_DELAY : 5
Adapter Configuration:
SCSI Adapter: Adaptec AIC-7892 Ultra 160/m SCSI host adapter
Ultra-160/m LVD/SE Wide Controller at PCI 1/9/0
PCI MMAPed I/O Base: 0xff8ff000
Adapter SEEPROM Config: SEEPROM found and used.
Adaptec SCSI BIOS: Enabled
IRQ: 9
SCBs: Active 0, Max Active 1,
Allocated 15, HW 32, Page 255
Interrupts: 82545
BIOS Control Word: 0x08f4
Adapter Control Word: 0x7c5d
Extended Translation: Enabled
Disconnect Enable Flags: 0xffff
Ultra Enable Flags: 0x0000
Tag Queue Enable Flags: 0x0000
Ordered Queue Tag Flags: 0x0000
Default Tag Queue Depth: 8
Tagged Queue By Device array for aic7xxx host instance 0:
{255,255,255,255,255,255,255,255,255,255,255,255,2 55,255,255,255}
Actual queue depth per device for aic7xxx host instance 0:
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
Statistics:
(scsi0:0:6:0)
Device using Wide/Sync transfers at 40.0 MByte/sec, offset 63
Transinfo settings: current(12/63/1/0), goal(9/127/1/2), user(9/127/1/2)
Total transfers 82473 (18992 reads and 63481 writes)
[ Never code before desk work ]
-------------------------------------:-->
A man who fears Nothing is the man who Loves Nothing
If you Love Nothing, what joy is there in your life.
=------------------------------------------------------= - I may be wrong.
$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: QUANTUM Model: ATLAS_V_18_WLS Rev: 0230
Type: Direct-Access ANSI SCSI revision: 03
in recent version (5.3) of hdparm.
void no_scsi (void)
{
if (is_scsi_hd) {
fputs (" operation not supported on SCSI disks\n", stderr);
exit(EINVAL);
}
}
Last edited by zahid; 03-18-2003 at 05:47 AM.
[ Never code before desk work ]
-------------------------------------:-->
A man who fears Nothing is the man who Loves Nothing
If you Love Nothing, what joy is there in your life.
=------------------------------------------------------= - I may be wrong.
I know what I'm going to do. Anyway, thanks for reminderOriginally posted by Vber
Well, ask in the Linux programming board, your question is plataform-specific.
[ Never code before desk work ]
-------------------------------------:-->
A man who fears Nothing is the man who Loves Nothing
If you Love Nothing, what joy is there in your life.
=------------------------------------------------------= - I may be wrong.