Hi
I'm new to programming, for OS X in particular (not the IT itself). Any way I'm forced to make the first steps towards.
The reason is an urge need in driver for a 3ware Escalade 7xxx/8xxx PATA/SATA-RAID Controller. 3ware officially doesn't provide any. Only 9xxx cards are supported. My idea was to write the missing driver using AMCC3ware9000.kext as reference. The results are not as good as expected. I made following steps with Xcode:
1) Composed new info.plist (based on the info.plist from AMCC3ware9000.kext)
2) Composed .h and .cpp source (based on sample codes I've found in WEB)
3) Compiled binary
4) Loaded kext (the kext loads with no problems or bugs, but does nothing else)
There is an output on the system boot:
Aug 0 00:00:00 localhost kernel[0]: com_amcc_3ware_AMCC3ware7xxx8xxxController[0x665db00]:robe(0x663b380, 0x5ba23f0c)
Aug 0 00:00:00 localhost kernel[0]: com_amcc_3ware_AMCC3ware7xxx8xxxController[0x665db00]::start(0x663b380)
As far as I understand the *UserClient.h *UserClient.cpp are needed in this case for the driver to be fully functional. The is the point I can't go any further. The *UserClient.h *UserClient.cpp sources I've managed to create, doesn't compile. Compilation gives 56 (or so) errors. To make things simpler, I've attached the Xcode project. I need an advice on debugging and recomposing the source (in other words what needs to be changed or modified).
View attachment AMCC3ware7xxx8xxx.zip
I'm new to programming, for OS X in particular (not the IT itself). Any way I'm forced to make the first steps towards.
The reason is an urge need in driver for a 3ware Escalade 7xxx/8xxx PATA/SATA-RAID Controller. 3ware officially doesn't provide any. Only 9xxx cards are supported. My idea was to write the missing driver using AMCC3ware9000.kext as reference. The results are not as good as expected. I made following steps with Xcode:
1) Composed new info.plist (based on the info.plist from AMCC3ware9000.kext)
2) Composed .h and .cpp source (based on sample codes I've found in WEB)
3) Compiled binary
4) Loaded kext (the kext loads with no problems or bugs, but does nothing else)
There is an output on the system boot:
Aug 0 00:00:00 localhost kernel[0]: com_amcc_3ware_AMCC3ware7xxx8xxxController[0x665db00]:robe(0x663b380, 0x5ba23f0c)
Aug 0 00:00:00 localhost kernel[0]: com_amcc_3ware_AMCC3ware7xxx8xxxController[0x665db00]::start(0x663b380)
As far as I understand the *UserClient.h *UserClient.cpp are needed in this case for the driver to be fully functional. The is the point I can't go any further. The *UserClient.h *UserClient.cpp sources I've managed to create, doesn't compile. Compilation gives 56 (or so) errors. To make things simpler, I've attached the Xcode project. I need an advice on debugging and recomposing the source (in other words what needs to be changed or modified).
View attachment AMCC3ware7xxx8xxx.zip