Commit Graph

31 Commits

Author SHA1 Message Date
christos
3aca3860f9 PR/50869: David Binderman: Use logical and instead of arithmetic 2016-02-29 18:24:31 +00:00
msaitoh
605f564f52 PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
  if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
  Currently the following extended capabilities are decoded:
   - Advanced Error Reporting
   - Virtual Channel
   - Device Serial Number
   - Power Budgeting
   - Root Complex Link Declaration
   - Root Complex Event Collector Association
   - Access Control Services
   - Alternative Routing-ID Interpretation
   - Address Translation Services
   - Single Root IO Virtualization
   - Page Request
   - TPH Requester
   - Latency Tolerance Reporting
   - Secondary PCI Express
   - Process Address Space ID
   - LN Requester
   - L1 PM Substates
  The following extended capabilities are not decoded yet:
   - Root Complex Internal Link Control
   - Multi-Function Virtual Channel
   - RCRB Header
   - Vendor Unique
   - Configuration Access Correction
   - Multiple Root IO Virtualization
   - Multicast
   - Resizable BAR
   - Dynamic Power Allocation
   - Protocol Multiplexing
   - Downstream Port Containment
   - Precision Time Management
   - M-PCIe
   - Function Reading Status Queueing
   - Readiness Time Reporting
   - Designated Vendor-Specific
2015-10-02 05:22:49 +00:00
macallan
04c3c50ebb another cpuregs.h 2015-06-09 16:29:01 +00:00
macallan
8005322523 more cpuregs.h 2015-06-09 16:10:48 +00:00
macallan
ec31a2edcd include cpuregs.h 2015-06-09 15:58:38 +00:00
jmcneill
8781c40608 if MEMORY_DISK_IS_ROOT is defined, dont try to guess the root device 2015-01-10 14:07:26 +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
christos
43ebc39121 kill sprintf 2014-03-26 17:41:15 +00:00
christos
b2543b9136 use cpu_{g,s}etmodel 2014-03-24 20:06:31 +00:00
macallan
6b4fd65138 make sure device properties for genfb or voyagerfb actually get set 2013-03-13 21:18:35 +00:00
macallan
badd43a7ec remove half-assed gdium-specific code in device_register and actually call
sys_platform->device_register()
how in Cthulhu's name did this ever work?
2013-03-13 21:17:43 +00:00
macallan
7bc3315133 make this compile without ISA support in the kernel 2013-02-28 13:22:36 +00:00
macallan
6e1cd854ac add poweroff support, make sure we actually charge the battery 2013-02-28 13:21:15 +00:00
chs
cbab9cadce split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
jdc
4be6ce2eeb Adapt to the changed signature of pckbc_cnattach(). 2012-10-13 17:58:53 +00:00
mlelstv
8ce4433821 Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.

No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().

Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().

Make cpu_rootconf(9) describe the calling order.
2012-07-29 18:05:39 +00:00
mrg
c42ab07995 normalise RCSID handling some. 2012-03-11 00:02:04 +00:00
nonaka
ccf5af0f11 Added Lemote Yeeloong Notebook support. 2012-03-02 13:20:57 +00:00
macallan
b639da56a8 fix 'old style function definition' warning:
blah() -> blah(void)
ok riz
2012-02-14 22:22:45 +00:00
christos
33049bbbda prototypes 2012-02-14 21:42:22 +00:00
christos
cfaa215076 fix proto 2012-02-14 21:41:02 +00:00
christos
c0777846a1 add prototypes. 2012-02-14 21:34:46 +00:00
macallan
28bedf5b5c wait after twiddling the gpio to power down, it takes a few seconds for it to
take effect. Without this we would run into gdium_reset() and reboot instead
of powering down.
2011-09-20 05:57:11 +00:00
macallan
4c830aa5a1 call gdium_cnattach()
Now this actually boots on Gdium.
2011-09-20 05:51:34 +00:00
macallan
124ba080d4 make this work with NCOM == 0 2011-09-20 05:50:17 +00:00
macallan
6a69241322 move the early console code over from ../gdium
This is kinda hackish but it works and it's not like there will be new Gdium
revisions anyway.
2011-09-20 05:41:58 +00:00
macallan
f20fb76889 add envsys support 2011-09-15 19:29:23 +00:00
macallan
96649c9b0b report power button events to sysmon 2011-09-07 13:37:49 +00:00
macallan
56ad028526 a driver for the gdium's ST7 microcontroller
so far it only reports AC and lid switch events to sysmon
2011-09-01 14:07:36 +00:00
bouyer
2fba875a58 Add a flags argument to gcscpcib_attach().
Add a flag argument which cause the waychdog to not be attached.
Use it to disable the watchdog on loongson-based platforms, where
the CS5536's reset output is not wired to the CPU reset line :(
2011-08-29 18:34:42 +00:00
bouyer
ccb3b2f232 Add loongson support to evbmips, based on the OpenBSD loongson port
and the existing evbmips/gdium support.
This has been tested on a lemote fuloong device (boots multiuser),
should also support other lemote devices (maybe with minor adjustments,
or adding missing drivers). There is some gdium support here too, but it
may not be yet complete (someone with a gdium would need to have a look,
hi macallan@ :)
loongson kernels are 64bits only: the loongson2f has ressources located
above the 2Gb physical address, and it's much easier to access it
using XKPHYS than trying to make it fit in the limited 32bit kernel
virtual space.
2011-08-27 13:42:44 +00:00