PCI Graphics Driver for Mac

Discussion in 'Mac Programming' started by skumar2011, Feb 7, 2007.

  1. macrumors newbie

    Joined:
    Dec 19, 2006
    #1
    Hi Guys,

    I am looking for the sample code of PCI Graphics Driver.
    On searching on net I got only one pdf Writing PCI Driver which is not very helpful to develop the driver for any PCI device.

    Can any body suggest me the helful link to get the sample code?

    Thanks and regard,
    Sunil.
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Have you written low level device drivers before? If not then find a simpler device to start with than a graphics card!

    You might want to read the various pages and samples on the developer site.

    Edit to add Specifically here
     
  3. thread starter macrumors newbie

    Joined:
    Dec 19, 2006
    #3
    PCI Graphics Driver for Mac

    thanks robbieduncan for your reply

    I have already developed a driver for Mass Storage device.
    Now I want to develop driver for PCI Graphics Card but don't have any sample code to start with.

    Please suggest me some link.

    Thanks,
    Sunil.
     
  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    This appears to be all there is in terms of PCI stuff. Apple provide all the graphics drivers for supported cards so there is probably no sample code.
     
  5. thread starter macrumors newbie

    Joined:
    Dec 19, 2006
    #5
    PCI Graphics Card

    I have my own PCI graphics card with some different functionality for this i want to write driver.
     
  6. macrumors 68020

    Joined:
    Mar 21, 2006
    Location:
    Hoosiertown
    #6
    what is the card? If I understand you correctly you want to write a driver to add functions that your card supports but osx doesn't.
     
  7. macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #7
    You best example will be X11 on Darwin. There is an effort underway to move Mac OS' X11 from xfree86 to x.org Lots on active forum traffic on this subject
     
  8. thread starter macrumors newbie

    Joined:
    Dec 19, 2006
    #8
    PCI Graphics Card Driver for Mac

    yes Rokem u r right.

    I have my own PCI graphic card with following spec:

    Bus: PCI 64bit/66 MHz
    Slot: PCI 32bit 64bit or PCI-X card slot3
    memory256 MB
    Connection Dual DVI-I connectors 1 or 2 displays
    LUT: 2 different for both displays

    which is having some different functionality which is not supported by Mac OS X in built drivers.

    Looking for sample code to start my own driver development.
     
  9. macrumors 68020

    Joined:
    Mar 21, 2006
    Location:
    Hoosiertown
    #9
    Was this card developed for a mac originally or like a windows or Linux box? I am assuming you're using a G3/G4/G5 tower? And does it do anything right now, as in is it usable?

    The reason I ask these is to make sure we're going at this at the right angle.
     
  10. thread starter macrumors newbie

    Joined:
    Dec 19, 2006
    #10
    PCI Graphics Card Driver for Mac

    thnaks Rokem for the quick reply

    Linux driver for this card already developed, now I want to deveop it for Mac.
    After going though specification of PCI Expansion slot of Mac, i came to know that only Power Mac G5 supports my PCI Card. The reason behind this is Power Mac G5 contain PCI-X slot which runs at max 133MHz. The PCI slots which are in G3,G4,G5 supports only 33MHz but my Card specs which I have already posted say 66MHz. Also new generation Mac Pro only contains PCI Express (PCI-E) slot which is incompatible with earlier PCI cards.

    am i right?
     
  11. macrumors 68020

    Joined:
    Mar 21, 2006
    Location:
    Hoosiertown
    #11
    you are right that the new mac pro wont support it. Is the driver for an x86 version of linux or a version based off ppc?

    If it was based off x86 you'll have to also rewrite the bios for the card itself.


    I found this. It should be helpful, maybe not. I don't write drivers. ftp://ftp.apple.com/developer/Development_Kits/PCI_DDK_3.0.dmg

    There was a nice pdf, a bit dated, but should help.
     
  12. thread starter macrumors newbie

    Joined:
    Dec 19, 2006
    #12
    PCI Graphics Card driver for Mac

    thanks for giving the link.

    I gone through the link and downloaded the dmg, is not very much helpful and the sample given in this is based on Mac Classic, i m trying to implement it in Mac OS X.


    PCI graphics card driver for linux is of x86 version.
     
  13. macrumors 68020

    Joined:
    Mar 21, 2006
    Location:
    Hoosiertown
    #13
    Even if you do write the driver you will have to rewrite the BIOS of the card. This is impossible If your not A) a the vendor, B) apple, Or C) if their isn't an existing bios for osx.
     
  14. thread starter macrumors newbie

    Joined:
    Dec 19, 2006
    #14
    PCI Graphics driver for Mac

    as a vendor to develop BIOS for the card what information regarding PCI Graphics Card i supposed to have?
     
  15. Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #15
    If you are the vendor then perhaps you should contact Apple for info?
     
  16. macrumors 68020

    Joined:
    Mar 21, 2006
    Location:
    Hoosiertown
    #16
    yah I really have no clue. Im only good for pointing out problems. My area of (expertise?) is modifing fcode BIOS's from NVIDIA. You'd need full documentation of the card and start talking to apple.
     
  17. thread starter macrumors newbie

    Joined:
    Dec 19, 2006
    #17
    PCI Graphics driver for Mac

    I m not getting that If i have my own graphic card with all the specification then what is the reason to contact Apple?

    What information they will provide?

    Any link writing the BIOS for device in Mac?

    Please tell me in detail.
     
  18. Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #18
    Look, we don't know. I'm not sure if you really are the vendor as you said. The vendor is the manufacturer of the card. From your later posts it sounds like you are an end-user. If you were the former then Apple would surely be the people most likely to be able to help you write a driver/BIOS. They have previous experience and know exactly how their computers work. I can't think of anyone (outside of the cards chipset manufacturer) that would be more likely to be able to provide assistance.

    Certainly they're a million times more likely be able to help than us.
     

Share This Page