summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2010-03-02Use the battery controller bit that signals the battery almost emptyOtto Moerbeek
condition to determine crtical status for the sensor and apm. This makes the critical status correspond to the flashing red battery led. Furthermore, use ISSET macros and friends.
2010-03-01- properly spell 'exception' in commentsJasper Lievisse Adriaanse
- properly spell 'usefulness'
2010-03-01Set the user data of interrupt counters to the interrupt vector number usedMark Kettenis
for the interrupt. Makes the vmstat -i output similar to what we see on i386. ok deraadt@, krw@
2010-03-01fix serial console switching logic; ok miod@ jasper@Otto Moerbeek
2010-03-01bring the splassert semantic from sparc64 to amd64. splassert in interruptDavid Gwynne
handlers now checks that the spl the isr was established at is the same as the one passed to splassert. this lets you check that isrs dont enter code that have insufficient protection if entered from process context. ok kettenis@
2010-02-28Attach the IR port as a second serial port on Fuloong 2F. Verified to attachMiod Vallat
and get interrupts by otto@, no further testing due to lack of IR devices.
2010-02-28Minimal frame buffer driver for the SiS 315 found on Lemote Fuloong systems.Miod Vallat
Currently unable to change video modes or provide any form of acceleration, so you are stuck in a 640x400x8 mode, but at least people scared of serial consoles will get a chance to use their Fuloongs now. Tested by otto@ (early developments) and jasper@ (final version)
2010-02-28A better bus_space_map() function for bonito PCI memory space, which noMiod Vallat
longers assumes all requested mappings fit in the three 64MB PCILO windows, but will instead check whether the requested mappings can be provided by PCILO regions or PCIHI regions (and on 2F-based systems, making sure we only use addresses which get properly routed from CPU to PCI within the 2F crossbar). This in turn requires early console code to abide the bus_space rules and get its resources from bus_space_map() rather than doing PCI BAR arithmetic by itself. No functional change on Lemote Yeeloong and Gdium Liberty; on Lemote Fuloong 2F this allows BAR set up in PCIHI space by PMON to be mapped by kernel code without having to compensate for the PCILO offset.
2010-02-28Fix off-by-one in LOMlite hostname code.Mark Kettenis
2010-02-28enable mpiiJonathan Gray
ok marco deraadt
2010-02-28Pass L2 cache size in struct cpu_hwinfo, so that bootstrap of secondaryMiod Vallat
processors can display correct data. Now cpu1 on octane is correctly reported in dmesg.
2010-02-28Add a bell routine and let pckbd and ukbd use it; ok otto@Miod Vallat
2010-02-28Add an explicit `delay constant' member to struct cpu_info, so that it canMiod Vallat
be decoupled from the nominal processor speed. While there, make sure delay() gets a proper delay constant if invoked before cpu0 attaches (how could I miss that when introducing struct cpu_hwinfo?!?)
2010-02-28implement hw.cpuspeed sysctl; ok miod@Otto Moerbeek
2010-02-28Bring battery life estimate when charging in line with most other apm(4)Otto Moerbeek
devices. Original code was inspired by/copied/stolen from the macppc apm(4), which has different semantics for battery life while charging.
2010-02-28don't guess info in the absense of a specific driver, just reportOtto Moerbeek
"we dont' know"
2010-02-28Basic apm(4), providing battery/power status and events. apm(4) is theOtto Moerbeek
generic part, ykbec(4) provides the device specific parts. Other battery/power status drivers can easily hook to adb(4). With help from miod@; ok matthieu@ miod@ jasper@
2010-02-27Remove ELF check. It is broken and since the PROM checks the loaded executableMark Kettenis
anyway, it's not worth fixing. Bump version number. ok deraadt@
2010-02-26when we build a vendor label for writing, clear the memory supplied by theTheo de Raadt
buffer cache first, so that all sorts of gibble doesn't end up on the disk. ok kettenis (for the sparc/sparc64 ones, at least)
2010-02-26crank version of the ofwboot, so we can tell which is whichTheo de Raadt
2010-02-26- remove double cvs id'sJasper Lievisse Adriaanse
2010-02-26- this device doesn't provide volume control, so stop whining about it. it's ↵Jasper Lievisse Adriaanse
just not there. ok jakemsr@ drahn@
2010-02-26Back out the last commit. Bizzarely, that extra l@ makes boong from CD fail!Theo de Raadt
Why this code, which must be executed, is not failing on disk is an utter mystery. More investigation needed.
2010-02-26Subdevice interrupt dispatcher for voyager(4) and ohci@voyager device, onlyMiod Vallat
allowed to match on old gdium artwork, as newer artwork have nothing connected to the usb pins, and this causes the empty bus probe to stall the boot a few seconds.
2010-02-24Update comments: the bit we flip in ISR4C on LS2F systems is not undocumented,Miod Vallat
but documentation for it only exists in Chinese. I still don't have the slightest idea why flipping it is important, but I am more confident flipping it now (-:
2010-02-24Minimal support for the ST7 chip found on Gdium Liberty, brings us batteryMiod Vallat
information and a few other things not yet wired.
2010-02-24Force write posting after changing GPIO pin status.Miod Vallat
2010-02-24Fix read/write logic to not rely upon M41T8X_TOD_START being zero.Miod Vallat
No functional change.
2010-02-24fix scaling of battery currentOtto Moerbeek
2010-02-24spacingTheo de Raadt
2010-02-23switch to simple indicators instead of playing string games; promptedOtto Moerbeek
by deraadt@
2010-02-23Restore MTRRs on resume.Mark Kettenis
ok oga@, pirofti@
2010-02-23ykbec(4), a driver to read fan, temperature and battery status usingOtto Moerbeek
the kb3310b embedded controller chip on the yeeloong. With help & ok miod@
2010-02-23Allow CPU->PCI access in a subset of the `high' bonito pci memory spaceMiod Vallat
(1GB@1GB); that's the best we can do on 2F due to the way the crossbar windows work. Necessary for upcoming Fuloong2F changes.
2010-02-23only match on Gdium; ok miod@Otto Moerbeek
2010-02-22It is bad to have HAVE_TIMECOUNTER but the clock/timer not configure aDale Rahn
timecounter.
2010-02-22Don't attempt to repost the video hardware. There are quite a few machinesMark Kettenis
where jumping to the "standard" video BIOS entry point locks up or even resets the machine. This will break resume on some other machines in the sense that the display on them will remain disabled. But hopefully those machines make it into a state where the kernel is running and we can fix that. ok deraadt@, marco@, mlarkin@
2010-02-22Use the logical or operator, not the bitwise operator inKevin Lo
the preprocessor.
2010-02-22- fix a few debug messages: disabled vs enabled mixup, missing \nJacob Meuser
- remove some '//' commented code ok ratchov, kettenis, edd
2010-02-21Read revision from the correct MSR; no functional change.Miod Vallat
2010-02-21Make sure we only request our peer to start processing descriptors if itMark Kettenis
isn't currently doing so. Fixes hangs on large data transfers.
2010-02-21Start and stop watchdog timer in the appropriate places, and print a messageMark Kettenis
if it fires.
2010-02-20minor tweak to improve consistency with other drivers; startupIgor Sobrado
messages are usually lower case (exceptions are manufacturer codenames as "Pentium" or "Horse").
2010-02-19Add built-in audio support on Lemote systems.Miod Vallat
2010-02-19Move auglx(4) from i386-only land to MI land.Miod Vallat
(auglx.c is not modified in this commit yet, only moved around)
2010-02-19even more USB; ok miod@Otto Moerbeek
2010-02-19do NOT install the loongson mbr on other architectures!Theo de Raadt
2010-02-19Add a driver for the M41T8x time-of-day clock chips, such as the M41T83Miod Vallat
found on the Gdium Liberty. These machines finally no longer complain about a missing todclock.
2010-02-18Add a master driver for the VoyagerGX SM502 chip found on the Gdium, which isMiod Vallat
not only a framebuffer. Allow smfb to attach either at pci or at voyager. Add gpio@voyager and gdiumiic@gpio, a derivative of the MI gpioiic driver. This allows us to get lmtemp@iic on the Lemote; the next step being to write a driver for the i2c todclock chip found on the same bus.
2010-02-18improve startup messages rewording them in a more usual way; as aIgor Sobrado
side effect, this change makes displayed messages shorter. miod@ has observed that `Horse' is the codename of the chip, which gets paired with a `Saddle' companion chip. there is one hose (i.e., bus) per chip; others (`Tsunami') have two hoses per chip, or even four (`Typhoon'); so, `Horse' is not really a typo. written with clever advice from krw@ and miod@ miod@ has suggested the capitalization for `Saddle'. ok krw@, miod@