Page 1 of 2

Re: PCI enumeration

Posted: Fri Mar 14, 2008 2:22 am
by zaleschiemilgabriel
I see you're from "Cambridge, UK"... I thought that place was filled with geniuses. :roll:
lukem_95 wrote:hey, can somebody check my code please
Well, it's just not enough to say "please" anymore.
I got PCI enumeration working in assembly language a long time ago, and I'm not from Cambridge neither! But maybe that's just it. Maybe people from high up places don't have the time t check their own code. Maybe they figure there's lots of coders who've got nothing better to do than debug their code.

HINT: Avoid asking people to do your homework on Fridays, Mondays or during the weekend. Fridays are the worst. Mondays are really bad too.

Posted: Fri Mar 14, 2008 8:21 am
by zaleschiemilgabriel
See now, this should be considered "useful":
@lukem_95: First check what Jal said, and if that doesn't work, try reading the DWORD at 0x08 in the PCI Configuration Space and extract the class code from there (use the same method that Jal indicated). Some controllers (PCI-EX maybe, not sure) don't allow you to read word or byte values, only DWORDs (not really sure if this is entirely true, but I did run into the problem you have once and reading DWORDs fixed it).
If you are using the INT 1Ah BIOS service to do PCI enumeration, check for errors (CF set or AH != 0). If you don't know what I just said, just post the contents of your pci_read function.

If I could I would go the way to request that everyone asking for help post every step they took and everything they did or tried to see why their code isn't working instead of asking them to say "please".

Posted: Fri Mar 14, 2008 12:39 pm
by lukem95
How does asking someone for some pointers on my code lazy?

The wiki article is fairly incomplete on the subject, so i thought by posting some code i'd get some pointers onto how i would get it working. Which it appears to have done.

I didn't ask for anybody to write it for me... i do not consider this lazy, but actually, an appropriate use for this forum. Is it not what its for?

I don't know what your problem with me is zaleschiemilgabriel, but i have done nothing to you. so kindly click the "back" button (top left of your screen) instead of the little blue one saying "reply" next time, if you feel non-compelled to post something useful.

Posted: Fri Mar 14, 2008 4:10 pm
by zaleschiemilgabriel
Would you mind telling us what the problem was?
I'd like to point out that most of the answers given here were probably searched for on Google or other documentation was used to try to fix your problem. At least I know I googled a bit. I'm sure it would have taken you a lot less time to do so yourself. But hey, I guess it's your time, not mine. If you like to waste it that's your problem...
I have nothing personal to do with you. It's just the way you do your coding that makes me think that most of it isn't yours to begin with, and that makes you look a little lazy.

Oh, and I DID say something useful.

Posted: Fri Mar 14, 2008 4:24 pm
by lukem95
Its based on the code from the wiki article, i read the page and adapted the example to fit my needs, whilst extending on it in a totally different direction (not shown).

I'd ask you not to imply that i simply steal other peoples code (or copy-paste) and that this is what my OS is comprised of, as i find it extremely offensive. I have worked hard on my OS, and although some of it is based around tutorials, it has been adapted and changed at every stage.

Now i know this wasn't said word for word, and if i have gotten the wrong end of the stick, i apologise, but i am insulted. I posted this thread asking for someone with knowledge on the subject (for i have only what i found in the wiki and few googles i managed) to check my code, for i assumed it was faulty.

I'm sure the answers where on google, but i couldnt find anything, probably through incorrect searches. Now this is going extremely OT. I would ask that a mod closes this thread, as its becoming fairly flamey, and im rebuilding my code, as after getting this working, i realised that it wasn't wholey compatible with my driver interface.

Posted: Fri Mar 14, 2008 5:41 pm
by Combuster
I find it disturbing that you both have to fight over an posting style which a mod already has condemned.

@zaleschiemilgabriel: I find it very poor practice to keep posting insulting remarks even after a mod said something about it. I simply can't find anything that could remotely justify this behaviour. Also I seriously wonder where you got that 'problem solved' argument from.

@lukem_95: Don't feed the troll.

Posted: Sun Mar 16, 2008 5:54 am
by zaleschiemilgabriel
This is not about me. It's about the fact that he didn't try hard enough to just fix his problem by himself.
I don't know who the moderators are on this forum, and as much is I want to, I don't care. What was that "problem solved" thing again?

Posted: Tue Mar 18, 2008 1:16 am
by pcmattman
This is not about me. It's about the fact that he didn't try hard enough to just fix his problem by himself
He wrote code, tested it, found it didn't work, tried to figure out what was wrong. When he couldn't figure it out, he asked.

What is so wrong about this? His question was informative and we were able to find out what was wrong and help him out. And the problem is never solved in our eyes unless the OP tells us it is ;).

Posted: Tue Mar 18, 2008 2:13 am
by zaleschiemilgabriel
This is so getting old! Everybody keeps avoiding what I say just to protect lukem95 for some reason, but I still say he could've fixed this himself. I don't understand why everybody says that I said the problem was fixed. It was lukem95 who said that, not me! I said nothing of the kind. Whatever the mod's or everybody else's problem is, I'd like to say: STFU already! I'm starting to think more and more that this forum is nothing but bull**it. I have yet to see a real programmer here.

Posted: Tue Mar 18, 2008 2:25 am
by JackScott
Are you a real programmer?

Posted: Tue Mar 18, 2008 2:59 am
by JamesM
I have yet to see a real programmer here.
Define "real". I program C++ code for a living (at the moment), Combuster is, iirc a doctorate student in Computer Science; Brendan is the wise old sage that lives in the woods and teaches you the Force.

Posted: Tue Mar 18, 2008 6:06 am
by Combuster
JamesM wrote:Combuster is, iirc a doctorate student in Computer Science; Brendan is the wise old sage that lives in the woods and teaches you the Force.
Hey, I give classes too, for a living even :D

EDIT: but seriously, We've given arguments against your opinion and behaviour. If you can't give a decent counterargument I'll have to officially label you as a troll and treat you as such.

Posted: Tue Mar 18, 2008 6:21 am
by Ready4Dis
zaleschiemilgabriel wrote:This is so getting old! Everybody keeps avoiding what I say just to protect lukem95 for some reason, but I still say he could've fixed this himself. I don't understand why everybody says that I said the problem was fixed. It was lukem95 who said that, not me! I said nothing of the kind. Whatever the mod's or everybody else's problem is, I'd like to say: STFU already! I'm starting to think more and more that this forum is nothing but bull**it. I have yet to see a real programmer here.
Yes, I would also like to know the definition of a 'real' programmer. I'm pretty sure we just had an intellectual conversation in another thread (HD access in P-Mode), and I programmed for 3 years professionaly, and do a bit for a hobby as well. I've received hardware from both ATI and nVidia (the nvidia card wasn't even released yet to the public) for writing them graphics demo's and examples, as well as 3d game/engine code. Fo rmy actual job, I did database programming (much more boring than graphics and OS dev I think). So, what do you consider a 'real' programmer?

Posted: Tue Mar 18, 2008 8:10 am
by zaleschiemilgabriel
I'm dropping this conversation, because I'm getting annoyingly nowhere with it. Here's what I meant by it: LUKEM95 IS NOT A REAL PROGRAMMER! That's just my opinion and nobody has to agree... I might have kept that to myself, because nobody here seems to care anyway.
Throw whatever classes or degrees you want at me. That won't convince me you've got the skills. Licenses and diplomas are more of money issues nowadays, rather than reflecting the IQ and/or experience of the holder. Students laze themselves through classes just to get their diplomas. I have a college degree in computer science but it means squat to me because I got it by barely keeping myself awake in classes and doing a lot of private learning. It's enough that you pay your college taxes and keep your grades at average levels to get a diploma. That doesn't make you a "real" programmer. Neither does experience gained by doing services for other companies/people.

Posted: Tue Mar 18, 2008 8:42 am
by Ready4Dis
zaleschiemilgabriel wrote:I'm dropping this conversation, because I'm getting annoyingly nowhere with it. Here's what I meant by it: LUKEM95 IS NOT A REAL PROGRAMMER! That's just my opinion and nobody has to agree... I might have kept that to myself, because nobody here seems to care anyway.
Throw whatever classes or degrees you want at me. That won't convince me you've got the skills. Licenses and diplomas are more of money issues nowadays, rather than reflecting the IQ and/or experience of the holder. Students laze themselves through classes just to get their diplomas. I have a college degree in computer science but it means squat to me because I got it by barely keeping myself awake in classes and doing a lot of private learning. It's enough that you pay your college taxes and keep your grades at average levels to get a diploma. That doesn't make you a "real" programmer. Neither does experience gained by doing services for other companies/people.
So again, what defines a real programmer? You said you haven't met any on this site, and I think I could name a handful that I would consider knowledgeable enough to consider real programmers.