summaryrefslogtreecommitdiff
path: root/sys/dev/pci/piixpm.c
AgeCommit message (Collapse)Author
2007-09-13sync AMD SB600 PCI id with the new name.Brad Smith
ok dlg@
2007-05-03convert lockmgr style locks to rwlocks.David Gwynne
input from art@
2007-04-29Match on ATI IXP/SB600 as well.Jonathan Gray
Seen in a dmesg from alemao <skanabiz@gmail.com> ok grange@
2006-12-11do not bus_space_map devices which are at address 0; ok kettenisTheo de Raadt
2006-09-28Provide more info in error messages so we can see what's goingAlexander Yurchenko
on. And some cosmetics in debug messages while here.
2006-07-07use nested if-else to eliminate the need for a second polling printf,Brad Smith
suggested by grange@
2006-06-26if piixpm does not try to attach an interrupt then indicate that the chipBrad Smith
is in polling mode. ok kettenis@
2006-06-26add the PCI id for the ServerWorks HT-1000 SMbus controller.Brad Smith
From the Linux i2c-piix4 driver via gwk@ piixpm0 at pci0 dev 2 function 0 "ServerWorks HT-1000" rev 0x00 iic0 at piixpm0 admcts0 at iic0 addr 0x2c
2006-02-27Increase delay value, fixes pr5018.Alexander Yurchenko
With a help from kettenis@, ok deraadt@.
2006-02-11Mask off the highest 16 bit of the io space address.Alexander Yurchenko
Problem reported by kocka@hysteria.hu.
2006-01-18add some PIIX compatible SMBus controllers from SMSC and ATI.Brad Smith
Thanks to ian@ and msf@ for testing with an ATI IXP400 controller.
2006-01-15In iic_exec don't fail immediately if bus is already busy. It might beAlexander Yurchenko
running a BIOS' transfer so wait a bit and try again.
2006-01-15Simplify interrupt handler installing code.Alexander Yurchenko
2006-01-12if we cannot map the interrupt, try to do iic in polling mode anyways.Theo de Raadt
this lets iic work on at least a few other machines, we hope without any downside. at least we know from the previous check that it is not wired to SMI, right?; ok grange
2006-01-05knfAlexander Yurchenko
2006-01-05Happy New Year!Alexander Yurchenko
2006-01-05Reliability fixes:Alexander Yurchenko
- don't force enabling host controller - don't start new transfer if bus is busy - kill transfer on timeout Some ideas from kettenis@; ok deraadt@.
2006-01-03Revert part of the previous committed by mistake.Alexander Yurchenko
2006-01-03Correct interrupt type check. Pointed out by kettenis@, thanks.Alexander Yurchenko
2006-01-01switch from macppc-specific maciic(4) driver to the generic iic(4),Theo de Raadt
after teaching it to use a function pointer to get back to the OFW scan.. this will also help the sparc64 later; ok kettenis
2005-12-28Use corrent size for io mapping. Problem reported byAlexander Yurchenko
steve.shockley@shockley.net.
2005-12-25Don't allow slave devices to do polling during autoconf.Alexander Yurchenko
2005-12-25Force polling if interrupts not available.Alexander Yurchenko
2005-12-25Move all PIIX register definitions to a separate file.Alexander Yurchenko
2005-12-25Consistent device ids for piix pm controllers.Alexander Yurchenko
2005-12-24Rewrite piixpm(4) driver. It doesn't support acpi timer anymore, if weAlexander Yurchenko
want it for timecounters we better use real chipset-independent acpi timer driver (that's already in the tree, btw). Instead it supports Intel PIIX (and compatible, like ServerWorks) SMBus controller to be used with our fancy i2c stuff. ok deraadt@
2004-09-17Some cleanup:Alexander Yurchenko
- don't mix unsigned and u_int across the code - un'static some funcs ok art@
2004-07-28This touches only MI code, and adds new time keeping code. TheThorsten Lockert
code is all conditionalized on __HAVE_TIMECOUNTER, and not enabled on any platforms. adjtime(2) support exists, courtesy of nordin@, sysctl(2) support and a concept of quality for each time source attached exists. High quality time sources exists for PIIX4 ACPI timer as well as some AMD power management chips. This will have to be redone once we actually add ACPI support (at that time we need to use the ACPI interfaces to get at these clocks). ok art@ ken@ miod@ jmc@ and many more