As I understand it, implementing PCI cards is pretty rough to do 'from the groud up.' However, there are components out there to handle the nitty-gritty.
This article might give you some pointers:
http://www.e-insite.net/ednmag/archives/1995/033095/07df4.htm