Page 2 of 3

Re: IDE Tutorial

Posted: Sat Nov 07, 2009 1:16 pm
by iocoder
i think putting it in http://wiki.osdev.org/ATA_PIO_Mode is a good idea, what do you think?

Re: IDE Tutorial

Posted: Sat Nov 07, 2009 2:19 pm
by quok
Please don't overwrite the existing ATA PIO Mode article. I think you should create a new wiki article for your tutorial. Put it in your user namespace until you have the article finished, and then it can be linked in to the main namespace later.

Re: IDE Tutorial

Posted: Sat Nov 07, 2009 2:26 pm
by iocoder
quok wrote: Please don't overwrite the existing ATA PIO Mode article.
I'm not here to overwrite the efforts of others.
quok wrote: I think you should create a new wiki article for your tutorial. Put it in your user namespace until you have the article finished, and then it can be linked in to the main namespace later.
I thought that i can't create a new wiki article, but i will do as you said above and when i finish and the article is ready to be linked, i will declare here. thanx a lot.

Regards,
Mostafa

Re: IDE Tutorial

Posted: Sat Nov 07, 2009 2:31 pm
by earlz
if your logged in then just go to your user page and write your tutorial there(well convert it to wiki) and then when it's more complete you can move it into an actual page and link it with tutorials and all that jazz

Re: IDE Tutorial

Posted: Sat Nov 07, 2009 2:33 pm
by quok
earlz wrote:if your logged in then just go to your user page and write your tutorial there(well convert it to wiki) and then when it's more complete you can move it into an actual page and link it with tutorials and all that jazz
postcount++ much? I already said that exact thing, just look 2 posts up.

Re: IDE Tutorial

Posted: Sat Nov 07, 2009 3:00 pm
by jal
quok wrote:postcount++ much? I already said that exact thing, just look 2 posts up.
No, you said it in a way that could confuse newcomers, while earlz said it in a way the OP can understand :)).


JAL

Re: IDE Tutorial

Posted: Sat Nov 07, 2009 3:06 pm
by iocoder
who is the OP?

Re: IDE Tutorial

Posted: Sat Nov 07, 2009 3:54 pm
by Brynet-Inc
mostafazizo wrote:who is the OP?
That would be you, the Original Poster.

Re: IDE Tutorial

Posted: Sat Nov 07, 2009 9:39 pm
by AUsername
Excuse me, what is insl()?

InSignedLong()?

Thanks. ^-^

Re: IDE Tutorial

Posted: Sun Nov 08, 2009 2:48 am
by f2
AUsername wrote:Excuse me, what is insl()?

InSignedLong()?

Thanks. ^-^
"insl" is a macro like "outb" and "inb". It uses the "INS" assembler instruction:

Code: Select all

#define insl(port, buffer, count) \
         __asm__ ("cld; rep; insl" :: "D" (buffer), "d" (port), "c" (count))
The "INS" instruction:
Instruction: INS
INSB
INSW
INSD (386+ only)

Note: Loads data from portto the destination ES:(E)DI (even if
destination operand is supplied). (E)DI is adjusted by the size
of the operand and incrased if Direction Flag is cleared and
decrased if the Direction Flag is set. For INSB, INSW, INSD no
operands are allowed and teh size is determined by the mnemonic.

Re: IDE Tutorial

Posted: Sun Nov 08, 2009 5:21 am
by iocoder
I have finished writing this topic in the wiki, you can visit the page:
http://wiki.osdev.org/IDE
Also, It is added to the category of ATA.
http://wiki.osdev.org/Category:ATA
Thanx for help.

Regards,
Mostafa

Re: IDE Tutorial

Posted: Sun Nov 08, 2009 5:42 am
by iocoder
Congratulations for me! one star have added to my account! this is my first star ... :D
But could i know on which basis stars are added? stars number depends on what?

Re: IDE Tutorial

Posted: Sun Nov 08, 2009 5:58 am
by AJ
mostafazizo wrote:But could i know on which basis stars are added? stars number depends on what?
Stars are purely added based on post count.

Cheers,
Adam

Re: IDE Tutorial

Posted: Sun Nov 08, 2009 8:33 am
by i586coder
Hi,

two points :roll:

1. i suggest to write between brackets IDE(Integrated Drive Electronics ) to distinguish it from (IDE) which mean Integrated development environment .

2. where did you got the C code in this article , is the code is public domain or something :?:

Re: IDE Tutorial

Posted: Sun Nov 08, 2009 8:35 am
by iocoder
No no no no, this code is written by me, the full code.
The code was written (by me) mainly for Quafios IDE (Integrated Drive Electronics) Driver, and i used it again here.
i suggest to write between brackets IDE(Integrated Drive Electronics ) to distinguish it from (IDE) which mean Integrated development environment .
Updated...