Page 2 of 2

Re: PCI scan - what's up with this bits 0 and 1 of reg number?

Posted: Thu Oct 29, 2009 2:20 pm
by dak91
fronty wrote:
dak91 wrote:can you write me code of inportl and outportl? I've some mistakes
No.
nobody asked you anything, fronty

Re: PCI scan - what's up with this bits 0 and 1 of reg number?

Posted: Thu Oct 29, 2009 3:18 pm
by jal
dak91 wrote:
fronty wrote:
dak91 wrote:can you write me code of inportl and outportl? I've some mistakes
No.
nobody asked you anything, fronty
You didn't specify who the "you" was in your question. Also, it is very rude to ask for code, especially for people to write you code. Also, you tried to hijack the thread, which is about PCI. Also, you can easily google a myriad of inport/outport implementations. Also, you do not even show your code, so people can comment on it. Go hide under a rock now.


JAL

Re: PCI scan - what's up with this bits 0 and 1 of reg number?

Posted: Thu Oct 29, 2009 3:28 pm
by dak91
jal wrote:
You didn't specify who the "you" was in your question. Also, it is very rude to ask for code, especially for people to write you code. Also, you tried to hijack the thread, which is about PCI. Also, you can easily google a myriad of inport/outport implementations. Also, you do not even show your code, so people can comment on it. Go hide under a rock now.


JAL
I know, but when I use 64bit variable with "out" and "in" assembly istructions gcc returns errorr. Around the web I found only in and out C functions for 8, 16 and 32 bit. but you're right, this question is OT (even if ask to post one line of code imo isn't a crime)

Re: PCI scan - what's up with this bits 0 and 1 of reg number?

Posted: Thu Oct 29, 2009 5:17 pm
by pcmattman
I know, but when I use 64bit variable with "out" and "in" assembly istructions gcc returns errorr.
Read about the "IN" instruction in Volume 2A of the Intel Manuals (page 3-495, to save you the trouble). Also try page 4-17 of Volume 2B, which describes the "OUT" instruction. Then you'll realise it's probably best to do your research before you post if you want to be taken seriously.