Can you read BIOS info from memory? 0xffff:0x0005

This is a discussion on Can you read BIOS info from memory? 0xffff:0x0005 within the C Programming forums, part of the General Programming Boards category; I have found that BIOS information location IIRC is at 0xffff:0x0005. Anyone of you ever tried?...

  1. #1
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    532

    Can you read BIOS info from memory? 0xffff:0x0005

    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.

  2. #2
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    532
    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 04: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.

  3. #3
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807
    What about in Linux
    Well, ask in the Linux programming board, your question is plataform-specific.

  4. #4
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    532
    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)
    Attached Files Attached Files
    [ 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.

  5. #5
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    532
    $ 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 04: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.

  6. #6
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    532
    Originally posted by Vber
    Well, ask in the Linux programming board, your question is plataform-specific.
    I know what I'm going to do. Anyway, thanks for reminder
    [ 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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 08-09-2006, 01:06 PM
  2. Help doing an e-mail program in c...
    By Tyler_Durden in forum C Programming
    Replies: 88
    Last Post: 01-02-2005, 02:12 PM
  3. Pointer's
    By xlordt in forum C Programming
    Replies: 13
    Last Post: 10-14-2003, 02:15 PM
  4. Memory cannot be read error?
    By adam78 in forum C Programming
    Replies: 3
    Last Post: 12-03-2001, 02:25 PM
  5. MSVS 6.0 does not read BIOS interrupts
    By fatpotatohead in forum C Programming
    Replies: 3
    Last Post: 08-27-2001, 12:04 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21