RE: Substitute for HalGetBusData - A BIG question

RE: [ntdev] Substitute for HalGetBusDataAlberto,

I do have a burning question, and if it is offensive/rediculous dont answer
!

I always see you comeup with radical idea(s) about what an OS should or
should not do and end up bitching Windows !!! And endup getting bitched !

If I have to guess, the following are my guesses -

  1. In the past you recommended ideas those were well taken by OS team and
    been incorporated

  2. You might be still trying for the OS to become more facilitator

  3. You being a professor also, try to correlate with other OS either on the
    working or on the market and try to see MS windows also take that direction

  4. Any number of other techical efforts …

  5. You love to get the list member discharge their stress, as well as yours

  6. You love to be listened

  7. Any other reason(s) of non-technical nature

  8. Finally you are a spy from Microsoft, an extreemly high paid excellent
    execution of framing traps. You worked on lot of kernel traps so this would
    not surprise me.

And I hope this is not insulting to you or any other tries to get you on
leash. I, for sure, enjoys lot of your thoughts :slight_smile:

-pro

One thing is certain, I’m not a spy from Microsoft. I have a view of OS’s
that evolved from the early sixties when I was a rookie, and after having
seen something like Multics, well, it’s all downhill to me. And I take real
exception to people coming to tell me, or others, that “you shouldn’t do
that because it’s Microsoft’s OS and not yours” - anytime anyone brings up
that argument, that someone’s going to hear from me, because that ruffles my
feathers quite the wrong way. Another argument, which irks me intensely, is
the one that says “programming at hardware level is unsafe and shouldn’t be
done” - heck, maybe to many, but not to someone who’s spent at least fifteen
years of his professional life programming in machine code or assembler at
low level, or even wiring prototype boards with wire-wrap and soldering
iron. Again, that kind of arguments hits me the wrong way.

So, did you ever write a production Windows 3.1 or Windows 95 driver in
assembler ? Did you ever write bios code ? If you didn’t, I’m not sure you
know what the expression “device driver” really means. But then, heck,
that’s my personal view - feel free to disagree.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Prokash Sinha
Sent: Thursday, July 29, 2004 10:28 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

Alberto,

I do have a burning question, and if it is offensive/rediculous dont answer
!

I always see you comeup with radical idea(s) about what an OS should or
should not do and end up bitching Windows !!! And endup getting bitched !

If I have to guess, the following are my guesses -

  1. In the past you recommended ideas those were well taken by OS team and
    been incorporated

  2. You might be still trying for the OS to become more facilitator

  3. You being a professor also, try to correlate with other OS either on the
    working or on the market and try to see MS windows also take that direction

  4. Any number of other techical efforts …

  5. You love to get the list member discharge their stress, as well as yours

  6. You love to be listened

  7. Any other reason(s) of non-technical nature

  8. Finally you are a spy from Microsoft, an extreemly high paid excellent
    execution of framing traps. You worked on lot of kernel traps so this would
    not surprise me.

And I hope this is not insulting to you or any other tries to get you on
leash. I, for sure, enjoys lot of your thoughts :slight_smile:

-pro


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

RE: [ntdev] Substitute for HalGetBusData Windows is a commodity desktop/server OS, not a lab one.

MS seems to deliberately sacrifice extendability to the favour of making the life of IT departnents and SOHO users simpler.

Use Linux or FreeBSD, and patch the kernel yourself if you want so. I also expect you to never run the production server with the same patched kernel.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: Moreira, Alberto
To: Windows System Software Devs Interest List
Sent: Thursday, July 29, 2004 7:56 PM
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

One thing is certain, I’m not a spy from Microsoft. I have a view of OS’s that evolved from the early sixties when I was a rookie, and after having seen something like Multics, well, it’s all downhill to me. And I take real exception to people coming to tell me, or others, that “you shouldn’t do that because it’s Microsoft’s OS and not yours” - anytime anyone brings up that argument, that someone’s going to hear from me, because that ruffles my feathers quite the wrong way. Another argument, which irks me intensely, is the one that says “programming at hardware level is unsafe and shouldn’t be done” - heck, maybe to many, but not to someone who’s spent at least fifteen years of his professional life programming in machine code or assembler at low level, or even wiring prototype boards with wire-wrap and soldering iron. Again, that kind of arguments hits me the wrong way.

So, did you ever write a production Windows 3.1 or Windows 95 driver in assembler ? Did you ever write bios code ? If you didn’t, I’m not sure you know what the expression “device driver” really means. But then, heck, that’s my personal view - feel free to disagree.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Prokash Sinha
Sent: Thursday, July 29, 2004 10:28 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

Alberto,

I do have a burning question, and if it is offensive/rediculous dont answer !

I always see you comeup with radical idea(s) about what an OS should or should not do and end up bitching Windows !!! And endup getting bitched !

If I have to guess, the following are my guesses -

  1. In the past you recommended ideas those were well taken by OS team and been incorporated

  2. You might be still trying for the OS to become more facilitator

  3. You being a professor also, try to correlate with other OS either on the working or on the market and try to see MS windows also take that direction

  4. Any number of other techical efforts …

  5. You love to get the list member discharge their stress, as well as yours

  6. You love to be listened

  7. Any other reason(s) of non-technical nature

  8. Finally you are a spy from Microsoft, an extreemly high paid excellent execution of framing traps. You worked on lot of kernel traps so this would not surprise me.

And I hope this is not insulting to you or any other tries to get you on leash. I, for sure, enjoys lot of your thoughts :slight_smile:

-pro


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.

Sorry, I could not include your excerpts. But first, I wrote device driver for DOS, and Win3.1 on an AMCC based MatchMaker. Ported device driver from dos/win3.1 to NT. For NT, I should keep my mouth shut to let other people guess :).

No denial that you have a very long experiance playing with IRON level. On the otherhand, people got really pissed about co-oprating OS like win 3.1, and guess what still some pDA os uses it perfectly.

On the assembler side, I spent quite a bit of my time in the Networking group of IBM. There were two languages, APL or ASM nothing else.
At Bell Labs, it is C or pdp11/vax.

Oh well, I would not go that far to define what a driver should be, since it could have many forms, but I always thought some deciplined architecture is always necessary. An example in point is the stream interface of UNIX, before that drivers were bit more integrated to kernel, and of course there are other examples… Even N-CUBE had a huge monolithic kernel code that gets patched like library to each process you link, and only one process could be submitted…

In any case, I still think that you are a Microsoft spy, and the person(s) trying to get on your feathers are also framed that way :slight_smile: . Oh well, I need to see that movie, what was it named, War game or something. In the end, they find it is only a fucking game :slight_smile:

-pro

RE: [ntdev] Substitute for HalGetBusDataWell, lets say I have a device on the motherboard that is NOT WDM and windows does NOT magically invite me to accept it as MINE OWN. what else am i to do but write a driver that lets me probe the hardware and make sure the device (in this case on the i2c bus) is mine. there is no other way but to scan the hardware find the device send ACK’s to it and make sure it is there. Well i guess i could use HalGetBusData for this but I’m told I shouldn’t… so what is the G#damn alternative other than “just don’t do it like that because we don’t PERMIT it”… If in the future Microsoft doesn’t support HalGetBusData then I guess we will all post handy dandy assembly code on the net… so to those brilliant people out there listen to the argument… which is … yes we could all do it on linux but we could do the same on windows… after all they are both x86… but what we reallly want is a formal way that windows provides so that we don’t have to screw with everyone else.

----- Original Message -----
From: Maxim S. Shatskih
To: Windows System Software Devs Interest List
Sent: Thursday, July 29, 2004 9:16 AM
Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question

Windows is a commodity desktop/server OS, not a lab one.

MS seems to deliberately sacrifice extendability to the favour of making the life of IT departnents and SOHO users simpler.

Use Linux or FreeBSD, and patch the kernel yourself if you want so. I also expect you to never run the production server with the same patched kernel.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: Moreira, Alberto
To: Windows System Software Devs Interest List
Sent: Thursday, July 29, 2004 7:56 PM
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

One thing is certain, I’m not a spy from Microsoft. I have a view of OS’s that evolved from the early sixties when I was a rookie, and after having seen something like Multics, well, it’s all downhill to me. And I take real exception to people coming to tell me, or others, that “you shouldn’t do that because it’s Microsoft’s OS and not yours” - anytime anyone brings up that argument, that someone’s going to hear from me, because that ruffles my feathers quite the wrong way. Another argument, which irks me intensely, is the one that says “programming at hardware level is unsafe and shouldn’t be done” - heck, maybe to many, but not to someone who’s spent at least fifteen years of his professional life programming in machine code or assembler at low level, or even wiring prototype boards with wire-wrap and soldering iron. Again, that kind of arguments hits me the wrong way.

So, did you ever write a production Windows 3.1 or Windows 95 driver in assembler ? Did you ever write bios code ? If you didn’t, I’m not sure you know what the expression “device driver” really means. But then, heck, that’s my personal view - feel free to disagree.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Prokash Sinha
Sent: Thursday, July 29, 2004 10:28 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

Alberto,

I do have a burning question, and if it is offensive/rediculous dont answer !

I always see you comeup with radical idea(s) about what an OS should or should not do and end up bitching Windows !!! And endup getting bitched !

If I have to guess, the following are my guesses -

  1. In the past you recommended ideas those were well taken by OS team and been incorporated

  2. You might be still trying for the OS to become more facilitator

  3. You being a professor also, try to correlate with other OS either on the working or on the market and try to see MS windows also take that direction

  4. Any number of other techical efforts …

  5. You love to get the list member discharge their stress, as well as yours

  6. You love to be listened

  7. Any other reason(s) of non-technical nature

  8. Finally you are a spy from Microsoft, an extreemly high paid excellent execution of framing traps. You worked on lot of kernel traps so this would not surprise me.

And I hope this is not insulting to you or any other tries to get you on leash. I, for sure, enjoys lot of your thoughts :slight_smile:

-pro


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hotmail.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

If the device in question is enumerated off of a PCI bus device, then either
write a PCI function driver or a PCI function filter driver that enumerates
the device (i.e. an I2C bus driver) and then a function driver for the
enumerated device.

If the device in question is just a ‘legacy resource’ then use the existing
facilities for writing non-PnP WDM drivers by listing the resource
requirements in your inf file. See the intel sample IPMI driver. See various
ISA non-PnP drivers.

Your device may be enumerated off of the ACPI space. If so, then write and
ACPI-enumerated function driver.

What you do not need to do is use HalGetBusData.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Greg Jacklin
Sent: Friday, July 30, 2004 2:08 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question

Well, lets say I have a device on the motherboard that is NOT WDM and
windows does NOT magically invite me to accept it as MINE OWN. what else am
i to do but write a driver that lets me probe the hardware and make sure the
device (in this case on the i2c bus) is mine. there is no other way but to
scan the hardware find the device send ACK’s to it and make sure it is
there. Well i guess i could use HalGetBusData for this but I’m told I
shouldn’t… so what is the G#damn alternative other than “just don’t do it
like that because we don’t PERMIT it”… If in the future Microsoft doesn’t
support HalGetBusData then I guess we will all post handy dandy assembly
code on the net… so to those brilliant people out there listen to the
argument… which is … yes we could all do it on linux but we could do
the same on windows… after all they are both x86… but what we reallly
want is a formal way that windows provides so that we don’t have to screw
with everyone else.

----- Original Message -----
From: Maxim mailto:xxxxx S. Shatskih
To: Windows System Software Devs Interest mailto:xxxxx List

Sent: Thursday, July 29, 2004 9:16 AM
Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question

Windows is a commodity desktop/server OS, not a lab one.

MS seems to deliberately sacrifice extendability to the favour of making
the life of IT departnents and SOHO users simpler.

Use Linux or FreeBSD, and patch the kernel yourself if you want so. I
also expect you to never run the production server with the same patched
kernel.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: Moreira, Alberto mailto:xxxxx
To: Windows System Software Devs Interest mailto:xxxxx List

Sent: Thursday, July 29, 2004 7:56 PM
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

One thing is certain, I’m not a spy from Microsoft. I have a view of OS’s
that evolved from the early sixties when I was a rookie, and after having
seen something like Multics, well, it’s all downhill to me. And I take real
exception to people coming to tell me, or others, that “you shouldn’t do
that because it’s Microsoft’s OS and not yours” - anytime anyone brings up
that argument, that someone’s going to hear from me, because that ruffles my
feathers quite the wrong way. Another argument, which irks me intensely, is
the one that says “programming at hardware level is unsafe and shouldn’t be
done” - heck, maybe to many, but not to someone who’s spent at least fifteen
years of his professional life programming in machine code or assembler at
low level, or even wiring prototype boards with wire-wrap and soldering
iron. Again, that kind of arguments hits me the wrong way.

So, did you ever write a production Windows 3.1 or Windows 95 driver in
assembler ? Did you ever write bios code ? If you didn’t, I’m not sure you
know what the expression “device driver” really means. But then, heck,
that’s my personal view - feel free to disagree.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Prokash Sinha
Sent: Thursday, July 29, 2004 10:28 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

Alberto,

I do have a burning question, and if it is offensive/rediculous dont answer
!

I always see you comeup with radical idea(s) about what an OS should or
should not do and end up bitching Windows !!! And endup getting bitched !

If I have to guess, the following are my guesses -

1) In the past you recommended ideas those were well taken by OS team and
been incorporated

2) You might be still trying for the OS to become more facilitator

3) You being a professor also, try to correlate with other OS either on the
working or on the market and try to see MS windows also take that direction

4) Any number of other techical efforts …

5) You love to get the list member discharge their stress, as well as yours

6) You love to be listened

7) Any other reason(s) of non-technical nature

8) Finally you are a spy from Microsoft, an extreemly high paid excellent
execution of framing traps. You worked on lot of kernel traps so this would
not surprise me.

And I hope this is not insulting to you or any other tries to get you on
leash. I, for sure, enjoys lot of your thoughts :slight_smile:

-pro


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hotmail.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hollistech.com
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

It used to be that OS’s were written to the hardware, not the other way
around. Point being, no OS can cover all the bases required by the hardware,
therefore it may not be a good idea to prevent devs from going down to the
iron when need arises. So, instead of handling I2C, for example, we have to
waste time and energy handling PnP, WDM, ACPI, and what not - when none of
that should be needed.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mark Roddy
Sent: Friday, July 30, 2004 8:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

If the device in question is enumerated off of a PCI bus device, then either
write a PCI function driver or a PCI function filter driver that enumerates
the device (i.e. an I2C bus driver) and then a function driver for the
enumerated device.

If the device in question is just a ‘legacy resource’ then use the existing
facilities for writing non-PnP WDM drivers by listing the resource
requirements in your inf file. See the intel sample IPMI driver. See various
ISA non-PnP drivers.

Your device may be enumerated off of the ACPI space. If so, then write and
ACPI-enumerated function driver.

What you do not need to do is use HalGetBusData.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Greg Jacklin
Sent: Friday, July 30, 2004 2:08 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question

Well, lets say I have a device on the motherboard that is NOT WDM and
windows does NOT magically invite me to accept it as MINE OWN. what else am
i to do but write a driver that lets me probe the hardware and make sure the
device (in this case on the i2c bus) is mine. there is no other way but to
scan the hardware find the device send ACK’s to it and make sure it is
there. Well i guess i could use HalGetBusData for this but I’m told I
shouldn’t… so what is the G#damn alternative other than “just don’t do it
like that because we don’t PERMIT it”… If in the future Microsoft doesn’t
support HalGetBusData then I guess we will all post handy dandy assembly
code on the net… so to those brilliant people out there listen to the
argument… which is … yes we could all do it on linux but we could do
the same on windows… after all they are both x86… but what we reallly
want is a formal way that windows provides so that we don’t have to screw
with everyone else.

----- Original Message -----
From: Maxim mailto:xxxxx S. Shatskih
To: Windows System Software Devs Interest mailto:xxxxx List

Sent: Thursday, July 29, 2004 9:16 AM
Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question

Windows is a commodity desktop/server OS, not a lab one.

MS seems to deliberately sacrifice extendability to the favour of making
the life of IT departnents and SOHO users simpler.

Use Linux or FreeBSD, and patch the kernel yourself if you want so. I
also expect you to never run the production server with the same patched
kernel.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com mailto:xxxxx
http://www.storagecraft.com http:

----- Original Message -----
From: Moreira, Alberto mailto:xxxxx
To: Windows System Software Devs Interest mailto:xxxxx List

Sent: Thursday, July 29, 2004 7:56 PM
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

One thing is certain, I’m not a spy from Microsoft. I have a view of OS’s
that evolved from the early sixties when I was a rookie, and after having
seen something like Multics, well, it’s all downhill to me. And I take real
exception to people coming to tell me, or others, that “you shouldn’t do
that because it’s Microsoft’s OS and not yours” - anytime anyone brings up
that argument, that someone’s going to hear from me, because that ruffles my
feathers quite the wrong way. Another argument, which irks me intensely, is
the one that says “programming at hardware level is unsafe and shouldn’t be
done” - heck, maybe to many, but not to someone who’s spent at least fifteen
years of his professional life programming in machine code or assembler at
low level, or even wiring prototype boards with wire-wrap and soldering
iron. Again, that kind of arguments hits me the wrong way.

So, did you ever write a production Windows 3.1 or Windows 95 driver in
assembler ? Did you ever write bios code ? If you didn’t, I’m not sure you
know what the expression “device driver” really means. But then, heck,
that’s my personal view - feel free to disagree.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Prokash Sinha
Sent: Thursday, July 29, 2004 10:28 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

Alberto,

I do have a burning question, and if it is offensive/rediculous dont answer
!

I always see you comeup with radical idea(s) about what an OS should or
should not do and end up bitching Windows !!! And endup getting bitched !

If I have to guess, the following are my guesses -

1) In the past you recommended ideas those were well taken by OS team and
been incorporated

2) You might be still trying for the OS to become more facilitator

3) You being a professor also, try to correlate with other OS either on the
working or on the market and try to see MS windows also take that direction

4) Any number of other techical efforts …

5) You love to get the list member discharge their stress, as well as yours

6) You love to be listened

7) Any other reason(s) of non-technical nature

8) Finally you are a spy from Microsoft, an extreemly high paid excellent
execution of framing traps. You worked on lot of kernel traps so this would
not surprise me.

And I hope this is not insulting to you or any other tries to get you on
leash. I, for sure, enjoys lot of your thoughts :slight_smile:

-pro


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hotmail.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hollistech.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.</mailto:xxxxx></mailto:xxxxx></http:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

RE: [ntdev] Substitute for HalGetBusDataYes but, hardware used to be provided by a single vendor. When you purchased your “computer” it filled up an entire office, required special cooling and power, and most likely a lot of the software, including the OS, was tailor made just for you. There was no Egghead or CompUSA that would sell you “Piecework Payroll 1980”. In a given PC today you could have a collection of hardware and software from a dozen or more vendors produced to a dozen or more specifications, some of them ISO, some of them not, some of them “I wish I had a spec” and some of them “I wish I knew how this works”. The only CONSTANT in most systems today is the OS.

The day’s of OS’s being written to a single collection of anything is long gone.

Please … most of us that have been around this industry for any length of time can get as close to the iron or silicone as we want. I can tip toe through any part of the software in any of my systems anytime I want, and do exactly that, consistently, when I’m solving a problem. But I do that to figure out how I should do it properly within the OS so my company can shrink wrap it and sell a million copies of it. Writing code to the iron as you put it, means I could only sell those million shrink wrap boxes to the 10,000 that were stupid enough to buy the out of date XYZ widget that I was using to develop code.

And cleanup around your own door step. Do you have any idea how difficult it is to use Roddy’s DDKBUILD in VS NET if you use the DriverWorks wizard to build the driver project? The DriverStudio interface in VS .NET 2003 SUCKS, big time. Besides that, I had a requirement to use DDKBUILD to stay consistent with the rest of my team. Talk about hypocrisy. :slight_smile:


Gary G. Little
Seagate Technologies, LLC
“Moreira, Alberto” wrote in message news:xxxxx@ntdev…
It used to be that OS’s were written to the hardware, not the other way around. Point being, no OS can cover all the bases required by the hardware, therefore it may not be a good idea to prevent devs from going down to the iron when need arises. So, instead of handling I2C, for example, we have to waste time and energy handling PnP, WDM, ACPI, and what not - when none of that should be needed.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Mark Roddy
Sent: Friday, July 30, 2004 8:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

If the device in question is enumerated off of a PCI bus device, then either write a PCI function driver or a PCI function filter driver that enumerates the device (i.e. an I2C bus driver) and then a function driver for the enumerated device.

If the device in question is just a ‘legacy resource’ then use the existing facilities for writing non-PnP WDM drivers by listing the resource requirements in your inf file. See the intel sample IPMI driver. See various ISA non-PnP drivers.

Your device may be enumerated off of the ACPI space. If so, then write and ACPI-enumerated function driver.

What you do not need to do is use HalGetBusData.

--------------------------------------------------------------------------
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Greg Jacklin
Sent: Friday, July 30, 2004 2:08 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question

Well, lets say I have a device on the motherboard that is NOT WDM and windows does NOT magically invite me to accept it as MINE OWN. what else am i to do but write a driver that lets me probe the hardware and make sure the device (in this case on the i2c bus) is mine. there is no other way but to scan the hardware find the device send ACK’s to it and make sure it is there. Well i guess i could use HalGetBusData for this but I’m told I shouldn’t… so what is the G#damn alternative other than “just don’t do it like that because we don’t PERMIT it”… If in the future Microsoft doesn’t support HalGetBusData then I guess we will all post handy dandy assembly code on the net… so to those brilliant people out there listen to the argument… which is … yes we could all do it on linux but we could do the same on windows… after all they are both x86… but what we reallly want is a formal way that windows provides so that we don’t have to screw with everyone else.

----- Original Message -----
From: Maxim S. Shatskih
To: Windows System Software Devs Interest List
Sent: Thursday, July 29, 2004 9:16 AM
Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question

Windows is a commodity desktop/server OS, not a lab one.

MS seems to deliberately sacrifice extendability to the favour of making the life of IT departnents and SOHO users simpler.

Use Linux or FreeBSD, and patch the kernel yourself if you want so. I also expect you to never run the production server with the same patched kernel.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: Moreira, Alberto
To: Windows System Software Devs Interest List
Sent: Thursday, July 29, 2004 7:56 PM
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

One thing is certain, I’m not a spy from Microsoft. I have a view of OS’s that evolved from the early sixties when I was a rookie, and after having seen something like Multics, well, it’s all downhill to me. And I take real exception to people coming to tell me, or others, that “you shouldn’t do that because it’s Microsoft’s OS and not yours” - anytime anyone brings up that argument, that someone’s going to hear from me, because that ruffles my feathers quite the wrong way. Another argument, which irks me intensely, is the one that says “programming at hardware level is unsafe and shouldn’t be done” - heck, maybe to many, but not to someone who’s spent at least fifteen years of his professional life programming in machine code or assembler at low level, or even wiring prototype boards with wire-wrap and soldering iron. Again, that kind of arguments hits me the wrong way.

So, did you ever write a production Windows 3.1 or Windows 95 driver in assembler ? Did you ever write bios code ? If you didn’t, I’m not sure you know what the expression “device driver” really means. But then, heck, that’s my personal view - feel free to disagree.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Prokash Sinha
Sent: Thursday, July 29, 2004 10:28 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

Alberto,

I do have a burning question, and if it is offensive/rediculous dont answer !

I always see you comeup with radical idea(s) about what an OS should or should not do and end up bitching Windows !!! And endup getting bitched !

If I have to guess, the following are my guesses -

1) In the past you recommended ideas those were well taken by OS team and been incorporated

2) You might be still trying for the OS to become more facilitator

3) You being a professor also, try to correlate with other OS either on the working or on the market and try to see MS windows also take that direction

4) Any number of other techical efforts …

5) You love to get the list member discharge their stress, as well as yours

6) You love to be listened

7) Any other reason(s) of non-technical nature

8) Finally you are a spy from Microsoft, an extreemly high paid excellent execution of framing traps. You worked on lot of kernel traps so this would not surprise me.

And I hope this is not insulting to you or any other tries to get you on leash. I, for sure, enjoys lot of your thoughts :slight_smile:

-pro


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hotmail.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hollistech.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.

so let’s say there was a global lock that you could use to get exclusive
access to the PCI bus so you can walk it. Other drivers have to call
this too so they can insure uninterrupted access to a device they
control. But to me it seems this complicates a lot of other PCI drivers
in order to help you avoid writing a bus filter.

You should take a look at the WDF framework. Part of the purpose there
is to handle PNP, WDM, ACPI, etc for you so you can concentrate on
running your device. It’s probably not as sexy as just bypassing the
OS, but it might help you save some of the energy you expend making sure
your drivers work well with the rest of the system.

-p


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Moreira, Alberto
Sent: Friday, July 30, 2004 6:36 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

It used to be that OS’s were written to the hardware, not the other way
around. Point being, no OS can cover all the bases required by the
hardware, therefore it may not be a good idea to prevent devs from going
down to the iron when need arises. So, instead of handling I2C, for
example, we have to waste time and energy handling PnP, WDM, ACPI, and
what not - when none of that should be needed.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mark Roddy
Sent: Friday, July 30, 2004 8:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG
question

If the device in question is enumerated off of a PCI bus device,
then either write a PCI function driver or a PCI function filter driver
that enumerates the device (i.e. an I2C bus driver) and then a function
driver for the enumerated device.

If the device in question is just a ‘legacy resource’ then use
the existing facilities for writing non-PnP WDM drivers by listing the
resource requirements in your inf file. See the intel sample IPMI
driver. See various ISA non-PnP drivers.

Your device may be enumerated off of the ACPI space. If so, then
write and ACPI-enumerated function driver.

What you do not need to do is use HalGetBusData.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Greg Jacklin
Sent: Friday, July 30, 2004 2:08 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Substitute for HalGetBusData - A
BIG question

Well, lets say I have a device on the motherboard that
is NOT WDM and windows does NOT magically invite me to accept it as MINE
OWN. what else am i to do but write a driver that lets me probe the
hardware and make sure the device (in this case on the i2c bus) is mine.
there is no other way but to scan the hardware find the device send
ACK’s to it and make sure it is there. Well i guess i could use
HalGetBusData for this but I’m told I shouldn’t… so what is the G#damn
alternative other than “just don’t do it like that because we don’t
PERMIT it”… If in the future Microsoft doesn’t support HalGetBusData
then I guess we will all post handy dandy assembly code on the net…
so to those brilliant people out there listen to the argument… which
is … yes we could all do it on linux but we could do the same on
windows… after all they are both x86… but what we reallly want is a
formal way that windows provides so that we don’t have to screw with
everyone else.

----- Original Message -----
From: Maxim S. Shatskih
mailto:xxxxx
To: Windows System Software Devs Interest List
mailto:xxxxx
Sent: Thursday, July 29, 2004 9:16 AM
Subject: Re: [ntdev] Substitute for
HalGetBusData - A BIG question

Windows is a commodity desktop/server OS,
not a lab one.

MS seems to deliberately sacrifice
extendability to the favour of making the life of IT departnents and
SOHO users simpler.

Use Linux or FreeBSD, and patch the kernel
yourself if you want so. I also expect you to never run the production
server with the same patched kernel.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: Moreira, Alberto
mailto:xxxxx
To: Windows System Software Devs
Interest List mailto:xxxxx
Sent: Thursday, July 29, 2004 7:56 PM
Subject: RE: [ntdev] Substitute for
HalGetBusData - A BIG question

One thing is certain, I’m not a spy from
Microsoft. I have a view of OS’s that evolved from the early sixties
when I was a rookie, and after having seen something like Multics, well,
it’s all downhill to me. And I take real exception to people coming to
tell me, or others, that “you shouldn’t do that because it’s Microsoft’s
OS and not yours” - anytime anyone brings up that argument, that
someone’s going to hear from me, because that ruffles my feathers quite
the wrong way. Another argument, which irks me intensely, is the one
that says “programming at hardware level is unsafe and shouldn’t be
done” - heck, maybe to many, but not to someone who’s spent at least
fifteen years of his professional life programming in machine code or
assembler at low level, or even wiring prototype boards with wire-wrap
and soldering iron. Again, that kind of arguments hits me the wrong way.

So, did you ever write a production
Windows 3.1 or Windows 95 driver in assembler ? Did you ever write bios
code ? If you didn’t, I’m not sure you know what the expression “device
driver” really means. But then, heck, that’s my personal view - feel
free to disagree.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Prokash Sinha
Sent: Thursday, July 29, 2004 10:28 AM
To: Windows System Software Devs
Interest List
Subject: RE: [ntdev] Substitute for
HalGetBusData - A BIG question

Alberto,

I do have a burning question, and if it
is offensive/rediculous dont answer !

I always see you comeup with radical
idea(s) about what an OS should or should not do and end up bitching
Windows !!! And endup getting bitched !

If I have to guess, the following are my
guesses -

1) In the past you recommended ideas
those were well taken by OS team and been incorporated

2) You might be still trying for the OS
to become more facilitator

3) You being a professor also, try to
correlate with other OS either on the working or on the market and try
to see MS windows also take that direction

4) Any number of other techical efforts


5) You love to get the list member
discharge their stress, as well as yours

6) You love to be listened

7) Any other reason(s) of non-technical
nature

8) Finally you are a spy from Microsoft,
an extreemly high paid excellent execution of framing traps. You worked
on lot of kernel traps so this would not surprise me.

And I hope this is not insulting to you
or any other tries to get you on leash. I, for sure, enjoys lot of your
thoughts :slight_smile:

-pro


Questions? First check the Kernel Driver
FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev
as: xxxxx@compuware.com
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver
FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev
as: xxxxx@storagecraft.com
To unsubscribe send a blank email to
xxxxx@lists.osr.com

The contents of this e-mail are intended
for the named addressee only. It contains information that may be
confidential. Unless you are the named addressee or an authorized
designee, you may not copy or use it, or disclose it to anyone else. If
you received it in error please notify us immediately and then destroy
it.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@hotmail.com
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@hollistech.com
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@compuware.com
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only.
It contains information that may be confidential. Unless you are the
named addressee or an authorized designee, you may not copy or use it,
or disclose it to anyone else. If you received it in error please notify
us immediately and then destroy it.</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

But if you have a bus spec and an OS interface spec, what else should we
need to write a driver ? It used to be that drivers were the glue between
the OS and the hardware, but now a driver’s no more than a glue between two
portions of the OS. In the past when I wanted to find a driver guy I would
look for someone who could spell “hardware” and who knew how to wield a
scope, a logic analyzer, or an ICE - today I need someone who can spell
KeReleaseSpinLockFromDpcLevel, HwVidSynchronizeExecutionCallback, or
ExAcquireResourceExclusiveLite. Indeed, I may be getting too old …

As for DS on VS.NET, can you be more specific ? If you need some feature
that we don’t offer, I’ll be glad to try to oblige ! If your DDKBUILD is a
batch file, you can find our file RUNBUILD.BAT (it normally sits in your
C:\Program Files\Compuware\DriverStudio\Common directory) and update it to
invoke your DDKBUILD, or, if you really prefer, maybe you can get away by
just renaming it to something else, and renaming your DDKBUILD to
RUNBUILD.BAT. What happens is, whenever you click the Build button in the
DriverStudio VS.NET Toolbar, file RUNBUILD.BAT gets invoked. If you have any
trouble interfacing your drivers to a build.exe based build, you can look at
any sources file in the DS Framework samples.

But… Every bit of DS integrates into .NET as a tool, so that you have an
entry in the Tools/DriverStudio menu, and a toolbar for every function: DS
Build, BoundsChecker, TrueTime, TrueCoverage, DriverMonitor, TargetSelector,
Configurator… you can use your Tools/Customize facility to expose our
toolbars. If you want to use build.exe, we provide the build button for it.
We provide you with an interface into the project settings so that you can
for example use the DDK of your choice. We provide Src2Dsp so that you can
run it against your Sources file and generate a .dsp/.dsw pair that you can
use to build your drivers. We default to using the DDK compiler so that you
don’t need to worry about compatibility issues. We provide a set of buttons
that you can use to load your symbols into SoftICE, and we provide with
another button that lets you start SoftICE on demand. With the exception of
the Visual SoftICE pages, everything you can do on the Workbench you can do
on the VS.NET desktop, using precisely the same toolbars.

And, of course, you can do all that to a remote machine too, through the
Target Selector. Our idea is to make the develop/build/test environment as
comfortable as we possibly can. If there’s something missing, please let me
know !

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Friday, July 30, 2004 11:56 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Substitute for HalGetBusData - A BIG question

Yes but, hardware used to be provided by a single vendor. When you purchased
your “computer” it filled up an entire office, required special cooling and
power, and most likely a lot of the software, including the OS, was tailor
made just for you. There was no Egghead or CompUSA that would sell you
“Piecework Payroll 1980”. In a given PC today you could have a collection of
hardware and software from a dozen or more vendors produced to a dozen or
more specifications, some of them ISO, some of them not, some of them “I
wish I had a spec” and some of them “I wish I knew how this works”. The
only CONSTANT in most systems today is the OS.

The day’s of OS’s being written to a single collection of anything is long
gone.

Please … most of us that have been around this industry for any length of
time can get as close to the iron or silicone as we want. I can tip toe
through any part of the software in any of my systems anytime I want, and do
exactly that, consistently, when I’m solving a problem. But I do that to
figure out how I should do it properly within the OS so my company can
shrink wrap it and sell a million copies of it. Writing code to the iron as
you put it, means I could only sell those million shrink wrap boxes to the
10,000 that were stupid enough to buy the out of date XYZ widget that I was
using to develop code.

And cleanup around your own door step. Do you have any idea how difficult it
is to use Roddy’s DDKBUILD in VS NET if you use the DriverWorks wizard to
build the driver project? The DriverStudio interface in VS .NET 2003 SUCKS,
big time. Besides that, I had a requirement to use DDKBUILD to stay
consistent with the rest of my team. Talk about hypocrisy. :slight_smile:


Gary G. Little
Seagate Technologies, LLC

“Moreira, Alberto” < xxxxx@compuware.com
mailto:xxxxx > wrote in message news:xxxxx@ntdev
news:xxxxx
It used to be that OS’s were written to the hardware, not the other way
around. Point being, no OS can cover all the bases required by the hardware,
therefore it may not be a good idea to prevent devs from going down to the
iron when need arises. So, instead of handling I2C, for example, we have to
waste time and energy handling PnP, WDM, ACPI, and what not - when none of
that should be needed.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mark Roddy
Sent: Friday, July 30, 2004 8:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

If the device in question is enumerated off of a PCI bus device, then either
write a PCI function driver or a PCI function filter driver that enumerates
the device (i.e. an I2C bus driver) and then a function driver for the
enumerated device.

If the device in question is just a ‘legacy resource’ then use the existing
facilities for writing non-PnP WDM drivers by listing the resource
requirements in your inf file. See the intel sample IPMI driver. See various
ISA non-PnP drivers.

Your device may be enumerated off of the ACPI space. If so, then write and
ACPI-enumerated function driver.

What you do not need to do is use HalGetBusData.

_____

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Greg Jacklin
Sent: Friday, July 30, 2004 2:08 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question

Well, lets say I have a device on the motherboard that is NOT WDM and
windows does NOT magically invite me to accept it as MINE OWN. what else am
i to do but write a driver that lets me probe the hardware and make sure the
device (in this case on the i2c bus) is mine. there is no other way but to
scan the hardware find the device send ACK’s to it and make sure it is
there. Well i guess i could use HalGetBusData for this but I’m told I
shouldn’t… so what is the G#damn alternative other than “just don’t do it
like that because we don’t PERMIT it”… If in the future Microsoft doesn’t
support HalGetBusData then I guess we will all post handy dandy assembly
code on the net… so to those brilliant people out there listen to the
argument… which is … yes we could all do it on linux but we could do
the same on windows… after all they are both x86… but what we reallly
want is a formal way that windows provides so that we don’t have to screw
with everyone else.

----- Original Message -----
From: Maxim S. Shatskih mailto:xxxxx
To: Windows System Software Devs mailto:xxxxx Interest List

Sent: Thursday, July 29, 2004 9:16 AM
Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question

Windows is a commodity desktop/server OS, not a lab one.

MS seems to deliberately sacrifice extendability to the favour of making
the life of IT departnents and SOHO users simpler.

Use Linux or FreeBSD, and patch the kernel yourself if you want so. I
also expect you to never run the production server with the same patched
kernel.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com mailto:xxxxx
http://www.storagecraft.com http:

----- Original Message -----
From: Moreira, Alberto mailto:xxxxx
To: Windows mailto:xxxxx System Software Devs Interest List

Sent: Thursday, July 29, 2004 7:56 PM
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

One thing is certain, I’m not a spy from Microsoft. I have a view of OS’s
that evolved from the early sixties when I was a rookie, and after having
seen something like Multics, well, it’s all downhill to me. And I take real
exception to people coming to tell me, or others, that “you shouldn’t do
that because it’s Microsoft’s OS and not yours” - anytime anyone brings up
that argument, that someone’s going to hear from me, because that ruffles my
feathers quite the wrong way. Another argument, which irks me intensely, is
the one that says “programming at hardware level is unsafe and shouldn’t be
done” - heck, maybe to many, but not to someone who’s spent at least fifteen
years of his professional life programming in machine code or assembler at
low level, or even wiring prototype boards with wire-wrap and soldering
iron. Again, that kind of arguments hits me the wrong way.

So, did you ever write a production Windows 3.1 or Windows 95 driver in
assembler ? Did you ever write bios code ? If you didn’t, I’m not sure you
know what the expression “device driver” really means. But then, heck,
that’s my personal view - feel free to disagree.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Prokash Sinha
Sent: Thursday, July 29, 2004 10:28 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

Alberto,

I do have a burning question, and if it is offensive/rediculous dont answer
!

I always see you comeup with radical idea(s) about what an OS should or
should not do and end up bitching Windows !!! And endup getting bitched !

If I have to guess, the following are my guesses -

1) In the past you recommended ideas those were well taken by OS team and
been incorporated

2) You might be still trying for the OS to become more facilitator

3) You being a professor also, try to correlate with other OS either on the
working or on the market and try to see MS windows also take that direction

4) Any number of other techical efforts …

5) You love to get the list member discharge their stress, as well as yours

6) You love to be listened

7) Any other reason(s) of non-technical nature

8) Finally you are a spy from Microsoft, an extreemly high paid excellent
execution of framing traps. You worked on lot of kernel traps so this would
not surprise me.

And I hope this is not insulting to you or any other tries to get you on
leash. I, for sure, enjoys lot of your thoughts :slight_smile:

-pro


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hotmail.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hollistech.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.</mailto:xxxxx></mailto:xxxxx></http:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></news:xxxxx></mailto:xxxxx>

RE: [ntdev] Substitute for HalGetBusData
“Moreira, Alberto” wrote:

>> It used to be that OS’s were written to the hardware, not the other way
around.
>> Point being, no OS can cover all the bases required by the hardware,
therefore
>> it may not be a good idea to prevent devs from going down to the iron
when
>> need arises. So, instead of handling I2C, for example, we have to waste
time
>> and energy handling PnP, WDM, ACPI, and what not - when none of that
>> should be needed.

And in a previous message he wrote:

>> It’s a personal computer, remember ? Otherwise, should we go back to
the
>> mainframe culture of the 60’s ? I hope not.

It amazes me that you can be so inconsistant. Yes we are in the age of the
personal
computer, and that assumes that the average user is not well informed. In
the mainframe
and mini-computer culture it was reasonable, to have requirements that
stated “program
a will interfere with device x” or “driver q, does not fully support
function f, use at your
own risk”. Today we cannot afford this, a professional has to meet the
standard, such
as power, PnP, WDM, etc. These are not wastes of time they are fundamental
parts
of the implied contract between the OS and a driver writer.

The “ITS MY COMPUTER” mentality is the mainframe mentality, namely the
customer
or their support people know what they are doing, and rules are made to be
broken. As
computers become more and more a part of everyday life, so does providing
predictable
operation for all users.

What makes this unfortunate is the your attitude spills over into Compuware
products.
This week is the third time this year, someone I know called me complaining
they were
having bizarre problems while debugging a driver. I checked and they were
using SoftIce.
I told them to find a machine without Compuware products on it, fire off
WinDBG and
see if the problem persisted. In every case the bizarre problems go away
and debugging
can proceed normally. I nowadays tell customers to avoid SoftIce at all
costs since it
causes probelms.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting

I daresay that you shouldn’t need to write a filter: your PCI driver should
be the lowest level between the rest of the OS and your device. The PCI
hardware could also do with an SMP-safe way of fetching information, but
that’s another question. So, in the case of enumerating the bus, I don’t
mind to have to ask a PCI bus driver to do it - but I do mind if that driver
makes me into a “filter” and forces me to use something else between me and
my hardware.

You see, it’s not about “bypassing” the OS, it’s about the concept that a
device driver should be the bottom level interface between the OS and the
hardware. Look at display drivers to have an idea of a good layering: the
driver talks to the chip, and all interfaces to the OS are upstream. No
asking the OS permission to drive one’s hardware. Now, if I need some OS
service, for example, some buffers, I ask the miniport; if I need some setup
services that affect other components, I ask the miniport; if I need a mode
change, I ask the miniport; if I want to punt a service, I ask the correct
EngXxxxxYyyyy entry point to do it - but I hope you realize it, these are
*services*, they don’t stand between me and my hardware. I don’t write a
graphics filter driver to sit on top of the Miniport ! In fact, the trend is
to move that driver out of Ring 0 into user space.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Peter Wieland
Sent: Friday, July 30, 2004 12:36 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

so let’s say there was a global lock that you could use to get exclusive
access to the PCI bus so you can walk it. Other drivers have to call this
too so they can insure uninterrupted access to a device they control. But
to me it seems this complicates a lot of other PCI drivers in order to help
you avoid writing a bus filter.

You should take a look at the WDF framework. Part of the purpose there is
to handle PNP, WDM, ACPI, etc for you so you can concentrate on running your
device. It’s probably not as sexy as just bypassing the OS, but it might
help you save some of the energy you expend making sure your drivers work
well with the rest of the system.

-p


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Moreira, Alberto
Sent: Friday, July 30, 2004 6:36 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

It used to be that OS’s were written to the hardware, not the other way
around. Point being, no OS can cover all the bases required by the hardware,
therefore it may not be a good idea to prevent devs from going down to the
iron when need arises. So, instead of handling I2C, for example, we have to
waste time and energy handling PnP, WDM, ACPI, and what not - when none of
that should be needed.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mark Roddy
Sent: Friday, July 30, 2004 8:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

If the device in question is enumerated off of a PCI bus device, then either
write a PCI function driver or a PCI function filter driver that enumerates
the device (i.e. an I2C bus driver) and then a function driver for the
enumerated device.

If the device in question is just a ‘legacy resource’ then use the existing
facilities for writing non-PnP WDM drivers by listing the resource
requirements in your inf file. See the intel sample IPMI driver. See various
ISA non-PnP drivers.

Your device may be enumerated off of the ACPI space. If so, then write and
ACPI-enumerated function driver.

What you do not need to do is use HalGetBusData.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Greg Jacklin
Sent: Friday, July 30, 2004 2:08 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question

Well, lets say I have a device on the motherboard that is NOT WDM and
windows does NOT magically invite me to accept it as MINE OWN. what else am
i to do but write a driver that lets me probe the hardware and make sure the
device (in this case on the i2c bus) is mine. there is no other way but to
scan the hardware find the device send ACK’s to it and make sure it is
there. Well i guess i could use HalGetBusData for this but I’m told I
shouldn’t… so what is the G#damn alternative other than “just don’t do it
like that because we don’t PERMIT it”… If in the future Microsoft doesn’t
support HalGetBusData then I guess we will all post handy dandy assembly
code on the net… so to those brilliant people out there listen to the
argument… which is … yes we could all do it on linux but we could do
the same on windows… after all they are both x86… but what we reallly
want is a formal way that windows provides so that we don’t have to screw
with everyone else.

----- Original Message -----
From: Maxim S. Shatskih mailto:xxxxx
To: Windows System Software Devs Interest mailto:xxxxx List

Sent: Thursday, July 29, 2004 9:16 AM
Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question

Windows is a commodity desktop/server OS, not a lab one.

MS seems to deliberately sacrifice extendability to the favour of making
the life of IT departnents and SOHO users simpler.

Use Linux or FreeBSD, and patch the kernel yourself if you want so. I
also expect you to never run the production server with the same patched
kernel.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com mailto:xxxxx
http://www.storagecraft.com http:

----- Original Message -----
From: Moreira, Alberto mailto:xxxxx
To: Windows System Software Devs mailto:xxxxx Interest List

Sent: Thursday, July 29, 2004 7:56 PM
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

One thing is certain, I’m not a spy from Microsoft. I have a view of OS’s
that evolved from the early sixties when I was a rookie, and after having
seen something like Multics, well, it’s all downhill to me. And I take real
exception to people coming to tell me, or others, that “you shouldn’t do
that because it’s Microsoft’s OS and not yours” - anytime anyone brings up
that argument, that someone’s going to hear from me, because that ruffles my
feathers quite the wrong way. Another argument, which irks me intensely, is
the one that says “programming at hardware level is unsafe and shouldn’t be
done” - heck, maybe to many, but not to someone who’s spent at least fifteen
years of his professional life programming in machine code or assembler at
low level, or even wiring prototype boards with wire-wrap and soldering
iron. Again, that kind of arguments hits me the wrong way.

So, did you ever write a production Windows 3.1 or Windows 95 driver in
assembler ? Did you ever write bios code ? If you didn’t, I’m not sure you
know what the expression “device driver” really means. But then, heck,
that’s my personal view - feel free to disagree.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Prokash Sinha
Sent: Thursday, July 29, 2004 10:28 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question

Alberto,

I do have a burning question, and if it is offensive/rediculous dont answer
!

I always see you comeup with radical idea(s) about what an OS should or
should not do and end up bitching Windows !!! And endup getting bitched !

If I have to guess, the following are my guesses -

1) In the past you recommended ideas those were well taken by OS team and
been incorporated

2) You might be still trying for the OS to become more facilitator

3) You being a professor also, try to correlate with other OS either on the
working or on the market and try to see MS windows also take that direction

4) Any number of other techical efforts …

5) You love to get the list member discharge their stress, as well as yours

6) You love to be listened

7) Any other reason(s) of non-technical nature

8) Finally you are a spy from Microsoft, an extreemly high paid excellent
execution of framing traps. You worked on lot of kernel traps so this would
not surprise me.

And I hope this is not insulting to you or any other tries to get you on
leash. I, for sure, enjoys lot of your thoughts :slight_smile:

-pro


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hotmail.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@hollistech.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.</mailto:xxxxx></mailto:xxxxx></http:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

Now, now, cool down.

If you find a problem with SoftICE, please let us know about it and we’ll
fix it for next release, or even before. To be so extremely dogmatic as to
recommend people not to use a product, without any solid reason why, may not
be on the best interest of that user. We have thousands of users out there,
and the product works so well that people keep buying it even though its
only competition is free of charge.

And yes, it’s a “personal” computer, remember ? Not a shared mainframe. It’s
mine, not theirs. Whoever “they” may happen to be. And if what you want is
something that only naive users can use, you can try a Mac. But the problem
with an open architecture is that, well, it’s OPEN. It’s either open or
closed !

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Don Burn
Sent: Friday, July 30, 2004 12:49 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Substitute for HalGetBusData - A BIG question

RE: [ntdev] Substitute for HalGetBusData
“Moreira, Alberto” wrote:

>> It used to be that OS’s were written to the hardware, not the other way
around.
>> Point being, no OS can cover all the bases required by the hardware,
therefore
>> it may not be a good idea to prevent devs from going down to the iron
when
>> need arises. So, instead of handling I2C, for example, we have to waste
time
>> and energy handling PnP, WDM, ACPI, and what not - when none of that
>> should be needed.

And in a previous message he wrote:

>> It’s a personal computer, remember ? Otherwise, should we go back to
the
>> mainframe culture of the 60’s ? I hope not.

It amazes me that you can be so inconsistant. Yes we are in the age of the
personal
computer, and that assumes that the average user is not well informed. In
the mainframe
and mini-computer culture it was reasonable, to have requirements that
stated “program
a will interfere with device x” or “driver q, does not fully support
function f, use at your
own risk”. Today we cannot afford this, a professional has to meet the
standard, such
as power, PnP, WDM, etc. These are not wastes of time they are fundamental
parts
of the implied contract between the OS and a driver writer.

The “ITS MY COMPUTER” mentality is the mainframe mentality, namely the
customer
or their support people know what they are doing, and rules are made to be
broken. As
computers become more and more a part of everyday life, so does providing
predictable
operation for all users.

What makes this unfortunate is the your attitude spills over into Compuware
products.
This week is the third time this year, someone I know called me complaining
they were
having bizarre problems while debugging a driver. I checked and they were
using SoftIce.
I told them to find a machine without Compuware products on it, fire off
WinDBG and
see if the problem persisted. In every case the bizarre problems go away
and debugging
can proceed normally. I nowadays tell customers to avoid SoftIce at all
costs since it
causes probelms.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

[snip]

Can’t we just all hold hands, hum Kumbiya and then go back to work?

This thread is getting old and tired…YAWN…time for a nap…have a
good week-end folks…

No, no-one can go to sleep or even yawn :). It is a spy game, watch until the end, otherwise you would be highly penalized for pre-quit.

-pro

Alberto,

We can go back years in the archives of this forum and see you making the
exact same arguments about accessing PCI config space and what not.

What exactly are you trying to accomplish by bringing this up every time
someone asks a question about HalGetBusData?

Do you think Microsoft is going to change the OS to make this stuff more
accessible?

If you really want to make an impact on the design of the OS, here is the
place to start.

http://www.microsoft.com/careers/default.mspx

JimA

BTW, I have written VxD’s for Windows 3.1 in assembler…

“Moreira, Alberto” wrote in
news:xxxxx@ntdev:

> It used to be that OS’s were written to the hardware, not the other
> way around. Point being, no OS can cover all the bases required by the
> hardware, therefore it may not be a good idea to prevent devs from
> going down to the iron when need arises. So, instead of handling I2C,
> for example, we have to waste time and energy handling PnP, WDM, ACPI,
> and what not - when none of that should be needed.
>
>
> Alberto.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Mark Roddy
> Sent: Friday, July 30, 2004 8:16 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question
>
>
> If the device in question is enumerated off of a PCI bus device, then
> either write a PCI function driver or a PCI function filter driver
> that enumerates the device (i.e. an I2C bus driver) and then a
> function driver for the enumerated device.
>
> If the device in question is just a ‘legacy resource’ then use the
> existing facilities for writing non-PnP WDM drivers by listing the
> resource requirements in your inf file. See the intel sample IPMI
> driver. See various ISA non-PnP drivers.
>
> Your device may be enumerated off of the ACPI space. If so, then write
> and ACPI-enumerated function driver.
>
> What you do not need to do is use HalGetBusData.
>
>
> _____
>
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Greg Jacklin
> Sent: Friday, July 30, 2004 2:08 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question
>
>
> Well, lets say I have a device on the motherboard that is NOT WDM and
> windows does NOT magically invite me to accept it as MINE OWN. what
> else am i to do but write a driver that lets me probe the hardware and
> make sure the device (in this case on the i2c bus) is mine. there is
> no other way but to scan the hardware find the device send ACK’s to it
> and make sure it is there. Well i guess i could use HalGetBusData for
> this but I’m told I shouldn’t… so what is the G#damn alternative
> other than “just don’t do it like that because we don’t PERMIT it”…
> If in the future Microsoft doesn’t support HalGetBusData then I guess
> we will all post handy dandy assembly code on the net… so to those
> brilliant people out there listen to the argument… which is …
> yes we could all do it on linux but we could do the same on windows…
> after all they are both x86… but what we reallly want is a formal
> way that windows provides so that we don’t have to screw with everyone
> else.
>
>
>
> ----- Original Message -----
> From: Maxim mailto:xxxxx S. Shatskih
> To: Windows System Software Devs Interest
> mailto:xxxxx List
>
> Sent: Thursday, July 29, 2004 9:16 AM
> Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question
>
> Windows is a commodity desktop/server OS, not a lab one.
>
> MS seems to deliberately sacrifice extendability to the favour of
> making
> the life of IT departnents and SOHO users simpler.
>
> Use Linux or FreeBSD, and patch the kernel yourself if you want
> so. I
> also expect you to never run the production server with the same
> patched kernel.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com mailto:xxxxx
> http://www.storagecraft.com http:
>
>
> ----- Original Message -----
> From: Moreira, Alberto mailto:xxxxx
> To: Windows System Software Devs Interest
> mailto:xxxxx List
>
> Sent: Thursday, July 29, 2004 7:56 PM
> Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question
>
> One thing is certain, I’m not a spy from Microsoft. I have a view of
> OS’s that evolved from the early sixties when I was a rookie, and
> after having seen something like Multics, well, it’s all downhill to
> me. And I take real exception to people coming to tell me, or others,
> that “you shouldn’t do that because it’s Microsoft’s OS and not yours”
> - anytime anyone brings up that argument, that someone’s going to hear
> from me, because that ruffles my feathers quite the wrong way. Another
> argument, which irks me intensely, is the one that says “programming
> at hardware level is unsafe and shouldn’t be done” - heck, maybe to
> many, but not to someone who’s spent at least fifteen years of his
> professional life programming in machine code or assembler at low
> level, or even wiring prototype boards with wire-wrap and soldering
> iron. Again, that kind of arguments hits me the wrong way.
>
> So, did you ever write a production Windows 3.1 or Windows 95 driver
> in assembler ? Did you ever write bios code ? If you didn’t, I’m not
> sure you know what the expression “device driver” really means. But
> then, heck, that’s my personal view - feel free to disagree.
>
> Alberto.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Prokash Sinha
> Sent: Thursday, July 29, 2004 10:28 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question
>
>
>
> Alberto,
>
> I do have a burning question, and if it is offensive/rediculous dont
> answer !
>
> I always see you comeup with radical idea(s) about what an OS should
> or should not do and end up bitching Windows !!! And endup getting
> bitched !
>
> If I have to guess, the following are my guesses -
>
> 1) In the past you recommended ideas those were well taken by OS team
> and been incorporated
>
> 2) You might be still trying for the OS to become more facilitator
>
> 3) You being a professor also, try to correlate with other OS either
> on the working or on the market and try to see MS windows also take
> that direction
>
> 4) Any number of other techical efforts …
>
> 5) You love to get the list member discharge their stress, as well as
> yours
>
> 6) You love to be listened
>
> 7) Any other reason(s) of non-technical nature
>
> 8) Finally you are a spy from Microsoft, an extreemly high paid
> excellent execution of framing traps. You worked on lot of kernel
> traps so this would not surprise me.
>
>
> And I hope this is not insulting to you or any other tries to get you
> on leash. I, for sure, enjoys lot of your thoughts :slight_smile:
>
> -pro
></mailto:xxxxx></mailto:xxxxx></http:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

This is the very fine point I wanted to make:). Again a very respectalbe
person
should not be advised quite like that …

If I were a Microsoft official, I would have thrown him twice the money and
perks get him
to start yet another OS project, and let him show his power of thoughts …

But then I still think he should be living in Redmond and not in New
Hamshire !!!

And Alberto, if you ever decide to go there, all the very best from all of
us !

-pro

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of James
Sent: Saturday, July 31, 2004 11:29 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Substitute for HalGetBusData - A BIG question

Alberto,

We can go back years in the archives of this forum and see you making the
exact same arguments about accessing PCI config space and what not.

What exactly are you trying to accomplish by bringing this up every time
someone asks a question about HalGetBusData?

Do you think Microsoft is going to change the OS to make this stuff more
accessible?

If you really want to make an impact on the design of the OS, here is the
place to start.

http://www.microsoft.com/careers/default.mspx

JimA

BTW, I have written VxD’s for Windows 3.1 in assembler…

“Moreira, Alberto” wrote in
news:xxxxx@ntdev:

> It used to be that OS’s were written to the hardware, not the other
> way around. Point being, no OS can cover all the bases required by the
> hardware, therefore it may not be a good idea to prevent devs from
> going down to the iron when need arises. So, instead of handling I2C,
> for example, we have to waste time and energy handling PnP, WDM, ACPI,
> and what not - when none of that should be needed.
>
>
> Alberto.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Mark Roddy
> Sent: Friday, July 30, 2004 8:16 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question
>
>
> If the device in question is enumerated off of a PCI bus device, then
> either write a PCI function driver or a PCI function filter driver
> that enumerates the device (i.e. an I2C bus driver) and then a
> function driver for the enumerated device.
>
> If the device in question is just a ‘legacy resource’ then use the
> existing facilities for writing non-PnP WDM drivers by listing the
> resource requirements in your inf file. See the intel sample IPMI
> driver. See various ISA non-PnP drivers.
>
> Your device may be enumerated off of the ACPI space. If so, then write
> and ACPI-enumerated function driver.
>
> What you do not need to do is use HalGetBusData.
>
>
> _____
>
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Greg Jacklin
> Sent: Friday, July 30, 2004 2:08 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question
>
>
> Well, lets say I have a device on the motherboard that is NOT WDM and
> windows does NOT magically invite me to accept it as MINE OWN. what
> else am i to do but write a driver that lets me probe the hardware and
> make sure the device (in this case on the i2c bus) is mine. there is
> no other way but to scan the hardware find the device send ACK’s to it
> and make sure it is there. Well i guess i could use HalGetBusData for
> this but I’m told I shouldn’t… so what is the G#damn alternative
> other than “just don’t do it like that because we don’t PERMIT it”…
> If in the future Microsoft doesn’t support HalGetBusData then I guess
> we will all post handy dandy assembly code on the net… so to those
> brilliant people out there listen to the argument… which is …
> yes we could all do it on linux but we could do the same on windows…
> after all they are both x86… but what we reallly want is a formal
> way that windows provides so that we don’t have to screw with everyone
> else.
>
>
>
> ----- Original Message -----
> From: Maxim mailto:xxxxx S. Shatskih
> To: Windows System Software Devs Interest
> mailto:xxxxx List
>
> Sent: Thursday, July 29, 2004 9:16 AM
> Subject: Re: [ntdev] Substitute for HalGetBusData - A BIG question
>
> Windows is a commodity desktop/server OS, not a lab one.
>
> MS seems to deliberately sacrifice extendability to the favour of
> making
> the life of IT departnents and SOHO users simpler.
>
> Use Linux or FreeBSD, and patch the kernel yourself if you want
> so. I
> also expect you to never run the production server with the same
> patched kernel.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com mailto:xxxxx
> http://www.storagecraft.com http:
>
>
> ----- Original Message -----
> From: Moreira, Alberto mailto:xxxxx
> To: Windows System Software Devs Interest
> mailto:xxxxx List
>
> Sent: Thursday, July 29, 2004 7:56 PM
> Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question
>
> One thing is certain, I’m not a spy from Microsoft. I have a view of
> OS’s that evolved from the early sixties when I was a rookie, and
> after having seen something like Multics, well, it’s all downhill to
> me. And I take real exception to people coming to tell me, or others,
> that “you shouldn’t do that because it’s Microsoft’s OS and not yours”
> - anytime anyone brings up that argument, that someone’s going to hear
> from me, because that ruffles my feathers quite the wrong way. Another
> argument, which irks me intensely, is the one that says “programming
> at hardware level is unsafe and shouldn’t be done” - heck, maybe to
> many, but not to someone who’s spent at least fifteen years of his
> professional life programming in machine code or assembler at low
> level, or even wiring prototype boards with wire-wrap and soldering
> iron. Again, that kind of arguments hits me the wrong way.
>
> So, did you ever write a production Windows 3.1 or Windows 95 driver
> in assembler ? Did you ever write bios code ? If you didn’t, I’m not
> sure you know what the expression “device driver” really means. But
> then, heck, that’s my personal view - feel free to disagree.
>
> Alberto.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Prokash Sinha
> Sent: Thursday, July 29, 2004 10:28 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Substitute for HalGetBusData - A BIG question
>
>
>
> Alberto,
>
> I do have a burning question, and if it is offensive/rediculous dont
> answer !
>
> I always see you comeup with radical idea(s) about what an OS should
> or should not do and end up bitching Windows !!! And endup getting
> bitched !
>
> If I have to guess, the following are my guesses -
>
> 1) In the past you recommended ideas those were well taken by OS team
> and been incorporated
>
> 2) You might be still trying for the OS to become more facilitator
>
> 3) You being a professor also, try to correlate with other OS either
> on the working or on the market and try to see MS windows also take
> that direction
>
> 4) Any number of other techical efforts …
>
> 5) You love to get the list member discharge their stress, as well as
> yours
>
> 6) You love to be listened
>
> 7) Any other reason(s) of non-technical nature
>
> 8) Finally you are a spy from Microsoft, an extreemly high paid
> excellent execution of framing traps. You worked on lot of kernel
> traps so this would not surprise me.
>
>
> And I hope this is not insulting to you or any other tries to get you
> on leash. I, for sure, enjoys lot of your thoughts :slight_smile:
>
> -pro
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@garlic.com
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></mailto:xxxxx></http:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>