Commit Graph

49 Commits

Author SHA1 Message Date
Markus Fröschle
f164da60fc modified pci_device_config() to support byteswapped config access functions 2013-11-08 06:45:51 +00:00
Markus Fröschle
519f3a9d0f cleanly finish configuration access cycle in pci_write_config_longword 2013-11-08 05:45:12 +00:00
Markus Fröschle
ad1dda1e42 cleanly finish PCI configuration access in pci_read_config_longword 2013-11-08 05:43:29 +00:00
Markus Fröschle
af32d5b6ee fixed for little endian PCIBIOS routines. Fixed bus enumeration 2013-11-07 19:46:44 +00:00
Markus Fröschle
3f435ed80e modified PCI access routines to closer follow pcibios standard 2013-11-07 11:31:10 +00:00
Markus Fröschle
245cbe3a08 (nearly) fixed pci_find_device() 2013-11-07 07:45:54 +00:00
Markus Fröschle
f1169f6d8f fixed multi-function devices 2013-11-07 06:03:49 +00:00
Markus Fröschle
238678a359 cleaned up pci_find_device() 2013-11-07 06:00:30 +00:00
Markus Fröschle
f45336d214 removed unused code 2013-11-06 14:31:52 +00:00
Markus Fröschle
4022030db6 controlled PCI reset 2013-11-06 14:27:42 +00:00
Markus Fröschle
7ac1da5beb rewritten device scan and corrected PCI address mapping 2013-11-06 13:21:32 +00:00
Markus Fröschle
02d182395d cleaned up pci initialization and moved call behind FPGA initialization (pin assignments collide) 2013-11-06 06:09:36 +00:00
Markus Fröschle
993906cf9a got rid of global statics 2013-11-05 21:29:30 +00:00
Markus Fröschle
bf1a8bef38 renamed "slot" to "device" for better wording 2013-11-05 20:52:20 +00:00
Markus Fröschle
eca01095b1 fixed handle handling and reduced wait time for config space access 2013-11-05 20:20:52 +00:00
Markus Fröschle
6d3680fbd2 increased latency timer. It seems some config space accesses time out. Let's see if this fixes anythint 2013-11-05 11:04:59 +00:00
Markus Fröschle
79e0dfb418 fixed bug in pci_scan that prevented the handles array to be filled correctly 2013-11-05 09:22:21 +00:00
Markus Fröschle
d1210fa0fd polished PCI controller initialization 2013-11-05 06:17:30 +00:00
Markus Fröschle
89dd4ab845 initialize static arrays to 0 2013-11-05 05:57:59 +00:00
Markus Fröschle
d6210afa3a renamed struct pci_resource_descriptor to struct pci_rd 2013-11-05 05:56:19 +00:00
Markus Fröschle
942f417b13 fixed resource descriptors 2013-11-05 05:47:11 +00:00
Markus Fröschle
70365f08e4 fixed a few bugs but still no go.
Seem to have problems with global variables?
2013-11-04 20:58:57 +00:00
Markus Fröschle
6a73a85620 added comments 2013-11-03 20:24:49 +00:00
Markus Fröschle
181b409f0b modified to detect FireBee USB 2013-11-03 14:14:33 +00:00
Markus Fröschle
09c762b143 implemented an (ugly) implementation for pci_get_resource(). USB init code still hangs. 2013-11-03 13:38:18 +00:00
Markus Fröschle
a7b6c9cffa code runs until ohci_lowlevel_init() but can't continue since pci_get_resource() is not implemented yet 2013-11-03 11:20:39 +00:00
Markus Fröschle
4ed171811f fixed more undefined symbols 2013-11-03 09:10:29 +00:00
Markus Fröschle
6b0dcee284 implemented more helper functions needed by usb 2013-11-03 08:19:19 +00:00
Markus Fröschle
8d550a07d7 code compiles - not tested yet 2013-11-03 07:07:43 +00:00
Markus Fröschle
6dc5c2e996 added PCI memory alignment 2013-11-03 03:44:04 +00:00
Markus Fröschle
77fa6f2732 modified to fit usb driver requirements 2013-11-03 03:40:22 +00:00
Markus Fröschle
03e691ad2b PCI memory configuration done, still experimental 2013-11-02 07:37:47 +00:00
Markus Fröschle
f2e56296ad fixed typo 2013-11-02 05:21:10 +00:00
Markus Fröschle
f6c708e239 added vendor & device id to bus scan 2013-11-02 05:04:15 +00:00
Markus Fröschle
8d37dd35a4 use PCI_HEADER_TYPE macro 2013-11-01 17:08:25 +00:00
Markus Fröschle
2c07c85fe8 modified to build BaS for M5484LITE 2013-10-29 21:01:40 +00:00
Markus Fröschle
f7b68f912c added code to write configuration registers 2013-10-27 17:36:21 +00:00
Markus Fröschle
9f332114f0 PCI device scan works 2013-10-27 14:58:14 +00:00
Markus Fröschle
8e0740230e PCI controller and USB controller (3 functions) correctly detected now 2013-10-27 13:50:26 +00:00
Markus Fröschle
7179943952 fixed errorneous comment after ifdef 2013-10-27 09:16:57 +00:00
Markus Fröschle
250aae4ac4 fixed offsets in PCI config space access 2013-10-27 09:03:51 +00:00
Markus Fröschle
bfe9a1e1b7 added test routines for PCI config space access and bus enumeration 2013-10-27 08:38:43 +00:00
Markus Fröschle
720f3dc720 removed unneccessary annoying printout leftovers 2013-10-27 06:39:29 +00:00
Markus Fröschle
681343829c removed debug printout
incorporated EmuTOS byte swap routines for PCI access
2013-10-27 06:24:16 +00:00
Markus Fröschle
6b4431ed84 added byteswap macros lend from EmuTOS 2013-10-27 06:05:53 +00:00
Markus Fröschle
c45a959364 removed comment on USB controller initialization 2013-10-26 11:56:18 +00:00
Markus Fröschle
ccf8fde8b4 completely moved PCI initialization outside of sysinit.c 2013-10-26 09:51:29 +00:00
Markus Fröschle
a5ba6ce563 swapped out pci initialization into separate source file (still needs some testing bevore removing the original) 2013-10-21 10:03:00 +00:00
Markus Fröschle
6342196e2b added start of pci implementation 2013-08-23 07:29:02 +00:00