Linked by Thom Holwerda on Thu 1st Feb 2007 14:41 UTC, submitted by Oliver
Thread beginning with comment 208173
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
News
Linked by Thom Holwerda on 05/18/13 21:06 UTC
Linked by Thom Holwerda on 05/18/13 7:37 UTC
Linked by fran on 05/18/13 1:38 UTC
Linked by Thom Holwerda on 05/17/13 23:35 UTC, submitted by kragil
Linked by MOS6510 on 05/17/13 22:22 UTC
Linked by Thom Holwerda on 05/17/13 22:15 UTC, submitted by Tom
Linked by Thom Holwerda on 05/16/13 21:41 UTC
Linked by Thom Holwerda on 05/16/13 17:04 UTC
Linked by Thom Holwerda on 05/16/13 13:17 UTC
Linked by Thom Holwerda on 05/16/13 12:06 UTC
More News »
Sponsored Links



Member since:
2005-12-31
Finally, somebody is back on-topic
As for the magic numbers, many of them have no proper documentation and have a very device-specific meaning. Documenting them is not really a problem of porting the driver, but writing a clean driver in the first place. This would help Linux as much as it would help FreeBSD, but it's going to be a tough job. And it's a particularly uninteresting job if the device is a hardly-known and old one from a hardly-known company that already went out of business.
As for the porting itself, I think its a really bad idea. You can only emulate the OS/driver API properly if there is such an API in the first place. This isn't the case with Linux. I have actually written a kernel module once and I have to classify the kernel as "unstructured spaghetti code" - there simply aren't properly defined interfaces between the different parts.
If you want to emulate that mess in FreeBSD, you have to port half the kernel just to make sure every little bit behaves as intended. If you don't, you'll get headaches again and again for every single driver to be ported. I don't know if FreeBSD has similar code structuring problems, but if it does, a FreeBSD kernel with Linux emulation is going to be an unmaintainable mess that will never work.