Go Back   Wireless and Wifi Forums > News > Newsgroups > alt.comp.hardware
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2008, 03:43 PM
aleksa
Guest
 
Posts: n/a
Default Help me simulate PATA hard disk in PIO mode 0

I want to simulate a PATA hard disk, in PIO mode 0.

Basically, I want to respond to two commands:
Identify Drive (0ECh), and Read Sector (20h, 21h, 0C4h).


I use two motherboards to test my hardware,
one from 1997 and one from 2005.


This is how the old motherboard behaves:
BIOS recognizes the 'disk' as PIO mode 0.
BIOS loads the IdentifyDrive data in mode 0.
BIOS loads the ReadSector data in mode 0.


This is how the new motherboard behaves:
BIOS recognizes the 'disk' as PIO mode 0.
BIOS loads the IdentifyDrive data in mode 0.
*BUT*, BIOS loads the ReadSector data in mode 1.


Currently, my hardware cannot support
modes other than PIO mode 0.


Is the BIOS on my new motherboard buggy (who has a disk so old,
right?)
or is my IdentifyDrive data wrong?


This is what I return on Identify Drive command:


PATA_IDsector word 00C5Ah ;0
word 685 ;1
word 0 ;2
word 16 ;3
word 24662 ;4
word 649 ;5
word 38 ;6
word 00030h ;7
word 0000Ah ;8
word 00000h ;9
word " " ;10
word " " ;11
word " " ;12
word " " ;13
word " " ;14
word " " ;15
word " " ;16
word " " ;17
word " " ;18
word " " ;19
word 3 ;20
word 64 ;21
word 4 ;22
word " " ;23
word " " ;24
word " " ;25
word " " ;26
word "PA" ;27
word "TA" ;28
word " T" ;29
word "ES" ;30
word "T " ;31
word " " ;32
word " " ;33
word " " ;34
word " " ;35
word " " ;36
word " " ;37
word " " ;38
word " " ;39
word " " ;40
word " " ;41
word " " ;42
word " " ;43
word " " ;44
word " " ;45
word " " ;46
word 08001h ;47
word 0 ;48
word 00401h ;49
word 0 ;50
word 0 ;51
word 0 ;52
word 2 ;53
word 685 ;54
word 16 ;55
word 38 ;56
word 6 ;57
word 23264 ;58
word 00101h ;59
word 00000h ;60
word 00000h ;61
word 00000h ;62
word 0 ;63
word 0 ;64
word 0 ;65
word 0 ;66
word 600 ;67
word 600 ;68
word 00000h ;69
word 00000h ;70


Words 71-255 are zeros.


Anyone knows what am I doing wrong here?


BTW, the original data for the Identintify Drive command were
taken from old Conner ~230MB and then changed to support only
PIO mode 0, no DMA, etc..



Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
write endurance - solid state flash drives, windows xp, virtualmemory jameshanley39@yahoo.co.uk alt.comp.hardware 10 06-05-2008 04:40 AM
Hard disk failure is imminent. Ivan alt.comp.hardware 1 02-18-2008 11:32 PM
Verizon Wireless thumbs its nose at the iPhone Jeff alt.cellular.cingular 242 07-08-2007 07:32 PM
installing new hard disk vj alt.comp.hardware 9 11-02-2005 11:30 PM
Mini-ITX fails to detect hard disk sometimes Old Wolf alt.comp.hardware 2 10-09-2005 09:11 PM


All times are GMT. The time now is 02:40 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45