Commit Graph

12 Commits

Author SHA1 Message Date
macallan
0467dcceed pass clockframe aropund in voyager_intr() 2016-11-16 22:05:19 +00:00
macallan
c8234e40d8 zero out struct i2cbus_attach_args and i2c_controller before messing with
them
2016-01-01 20:48:15 +00:00
christos
e58a356cba make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
2014-03-29 19:28:24 +00:00
drochner
d8e1a7b61a Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.
2012-01-30 19:41:18 +00:00
macallan
b58e2e7c6b only try to attach child drivers if they're actually present 2011-12-13 14:41:55 +00:00
macallan
00d7756e68 consolidate bit twiddling functions into one generic case and a bunch of
macros, use them
2011-12-07 09:08:00 +00:00
macallan
736de382c2 include opt_voyager.h 2011-10-20 22:04:10 +00:00
macallan
2b76e25f6e add functions to control gpio usage and to program PWM timers
also add basic interrupt support ( not used yet )
2011-10-18 17:57:40 +00:00
macallan
c5d58b8a4a add a function to mess with gpios which locks against the i2c stuff 2011-09-06 06:26:13 +00:00
macallan
b9372d64bc some i2c devices we're going to deal with need a little delay after each
write. Also make sure the gpios we're using are outputs.
2011-09-01 14:04:55 +00:00
macallan
7f7e1ce392 only attach the i2c bus if the gpio pins we're using are actually
configured as gpio
while there remove some accidentially left in debug code
2011-09-01 00:06:42 +00:00
macallan
d0e648c14a split up voyagerfb into the framebuffer portion and a pseudo bus that we can
attach all the other sub-devices to
while there attach an i2c bus
2011-08-31 16:47:31 +00:00