Commit Graph

1016 Commits

Author SHA1 Message Date
cegger
17db90159e use device_lookup_private to get softc 2008-06-13 12:25:37 +00:00
ad
06c343ac94 vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both. 2008-06-04 12:41:40 +00:00
ad
48ced055d4 pci_intr_setattr(), allows PCI interrupts to be marked MPSAFE on x86, and
other platforms if the code is added.

pci_intr_map(...)
pci_intr_setattr(pc, ih, PCI_INTR_MPSAFE, 1);
pci_intr_establish(...)
2008-05-30 19:26:35 +00:00
tsutsui
40f5425d58 Remove all initialization of obsolete ci_divisor_recip in
mips struct cpu_info and related macroes.
The member was prepared for a hack in MD microtime(9) implementation
but it has been superseded by MI timecounter(9).
2008-05-26 15:59:29 +00:00
tsutsui
b87210fa51 Normalize my licenses. 2008-05-14 13:29:27 +00:00
martin
5d1469bd77 Backout previous: the license sweep touched these files in error, so
restore the old license.
2008-05-10 15:31:03 +00:00
jmcneill
34fba0e3ad Use 2-clause license. 2008-05-08 02:10:59 +00:00
jmcneill
729313d52c Use 2-clause license. 2008-05-05 00:12:49 +00:00
martin
cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
tsutsui
835f32c27d - split softc/device_t with related changes
- always make local functions static since mips/conf/Makefile.mips
  has been changed to preserve local symbols for debug
2008-04-29 15:50:39 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cegger
73d529c226 Make this build again. From Hans Rosenfeld. 2008-04-22 14:02:04 +00:00
cegger
5db505451b Fix panics at boot and some other misc bugs. From Hans Rosenfeld. 2008-04-18 14:56:40 +00:00
cegger
376411d2dd device_t / softc split. From Hans Rosenfeld. 2008-04-16 09:39:01 +00:00
cegger
2e0a7d9ea0 ppbus device_t / softc splitting. From Hans Rosenfeld. 2008-04-16 06:25:23 +00:00
tsutsui
9a86ae19d5 - add options COMPAT_40
- use options<space><tab>
2008-04-04 16:27:26 +00:00
tsutsui
02cb47cab2 Split softc and device_t for zsc(4) and its children.
XXX we should restructure MI APIs and make it really machine independent.
2008-03-29 19:15:34 +00:00
tsutsui
71fd55d0c3 Enable warning options. 2008-03-28 16:41:37 +00:00
tsutsui
74d089c227 Adjust boot device detection code to make netboot work properly:
- make a bootloader pass bootpath which includes device path on ARC BIOS
  via BTINFO_BOOTPATH
- make a kernel use BTINFO_BOOTPATH in bootinfo to see boot device first,
  then check argv[0] passed from ARC BIOS if there is no valid bootinfo
- check OSLoadPartition variables in the ARCBIOS environment and whole
  argv[] arguments for IP12
- initialize mach_type before it's referred
- bump boot version

Tested on IP32 with various kernel/bootloader combinations.
2008-03-28 16:40:25 +00:00
jmcneill
6a2a315184 Remove debug printf: ``so we need 10 x 8 tiles -> 00500000'' 2008-03-18 02:41:38 +00:00
jmcneill
5f170d1cdb Swap red and blue for 8bpp paletted mode. 2008-03-15 16:13:39 +00:00
cube
a22d8d4abb Split device_t and softc for pckbc(4) and its attachments. 2008-03-15 13:23:24 +00:00
cube
607ead0ef4 Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend).  Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
tnn
012005e684 - Attach the keyboard controller even if we're on serial console.
- If arcbios is using graphics console, then attach the keyboard as the
  console keyboard. Makes ddb work on the framebuffer console.
2008-03-08 15:04:33 +00:00
tnn
4f831ae35a tmpfs works on sgimips, so enable it. 2008-03-07 21:42:19 +00:00
cube
8ecf8999bf Split the softc from the device_t for all lpt(4) variants and attachments
except the ppbus stuff (which doesn't compile) and ulpt(4) which is
unrelated and can be dealt with separately.

As usual, it comes with related cosmetic changes.
2008-03-07 17:15:51 +00:00
macallan
b14b0caf09 allow userland to map all video memory, not just the visible part 2008-03-02 00:54:25 +00:00
macallan
4750dcc2e0 allocate a linear buffer, don't smoke crack when setting up the engine's TLBs 2008-03-01 16:56:39 +00:00
martin
bc6c1c587e Add a hack to deal with hardware that misses the machine's serial number
for whatever reason - just generate a MAC address from another environemt
variable, so that the admin can adjust it.
2008-02-25 22:49:20 +00:00
tsutsui
4ad6bc9eb7 - use bootprog_name[] generated by sys/conf/newvers_stand.sh
- constify, KNF
- fix bootloader names in comment
2008-02-23 06:51:28 +00:00
tsutsui
f4c4fc8b84 Bump version for working bootinfo support. 2008-02-23 06:46:56 +00:00
tsutsui
d3005ea3b8 Use ${.TARGET}. 2008-02-23 05:43:27 +00:00
tsutsui
3f0427dce0 - preserver non-stripped boot binaries
- use ${.TARGET}
2008-02-23 05:42:51 +00:00
tsutsui
548d0c802d Fix NULL pointer dereference on CD boot.
Reported by Martin Husemann on port-sgimips.
2008-02-23 05:35:20 +00:00
sekiya
209f5cf4d0 Increase MSGBUFSIZE so that we don't truncate dmesg before syslog
starts.
2008-02-21 09:32:12 +00:00
drochner
bb33f35f20 Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
2008-02-20 21:43:33 +00:00
macallan
864b6f1c3f correct accidentially committed garbage (what the hell... ) 2008-02-18 19:43:02 +00:00
macallan
104b3395f2 correct typo 2008-02-18 19:04:49 +00:00
macallan
dca5aa4e8e avoid unnecessary writes to the MTE's direction registers 2008-02-18 18:35:37 +00:00
macallan
4395e1dd05 use MTE for rectangle filling as well
TODO: figure out why the MTE freaks out when used for character drawing
2008-02-17 02:09:05 +00:00
macallan
d1dee12954 adjust some register names, also use MTE for scrolling down 2008-02-17 01:46:46 +00:00
macallan
eceb35ec40 use the memory transfer engine for scrolling when possible
currently that's only for scrolling upwards but the speedup should be very
noticeable
TODO: use MTE for erase rasops, figure out how to control the MTEs direction
2008-02-17 00:51:15 +00:00
macallan
c46b52294a add bus_space_mmap() 2008-02-13 17:00:12 +00:00
macallan
9a7aee14e2 bunch of minor fixes:
- use default colour when clearing the screen on attach
- sprinkle some break; so we no longer panic in 32bit colour
- allow userland to mmap() engine registers but not TLBs
- get rid of a delay() in crmfb_wait_idle()
- use aprint_*()
2008-02-10 16:01:30 +00:00
macallan
f9556e751b get rid of some leftover debugging cruft 2008-02-06 01:33:38 +00:00
macallan
b86243ded7 update (c) sections 2008-02-05 21:42:16 +00:00
macallan
c5904c1083 add hardware acceleration for scrolling and clearing.
The framebuffer is now run in tiled mode so we can use the rendering engine
which means X is broken for now.
This needs more testing.
2008-02-05 21:39:25 +00:00
sekiya
37c9e98b8d Uncomment firewire devices. Verified working on my IP32 with a combo
USB2.0/IEEE1394 card:

fwohci0 at pci0 dev 3 function 3: VIA Technologies VT6306 IEEE 1394 Host Controller (rev. 0x46)
fwohci0: interrupting at crime interrupt 10
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:40:26:01:08:01:57:07
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)

... and:

ieee1394if0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
ieee1394if0: bus manager 1 (me)
ieee1394if0: New S400 device ID:0001a35000317061
sbp0 at ieee1394if0: SBP-2/SCSI over IEEE1394
scsibus2 at sbp0: 1 target, 0 luns per target
sd1 at scsibus2 target 0 lun 0: <AL-COMBO, , > disk fixed
sd1: fabricating a geometry
sd1: 38154 MB, 38154 cyl, 64 head, 32 sec, 512 bytes/sect x 78140160 sectors
sd1: fabricating a geometry
sd1: no disk label

There are a few "mace: overrun at ff2001" errors during access, but they
appear harmless.
2008-02-02 10:31:08 +00:00
sekiya
1ca3315527 Garbage-collect my old broken attempt at creating a ringbuffer for the audio
chip.  Fix grammar in a comment while I'm here.
2008-02-02 08:58:20 +00:00
sekiya
ab0a73e205 Allow sync-on-green to be controlled by ARCS environment variable "SyncOnGreen".
Set to anything starting with the letter 'n' to disable sync-on-green, set to
anything else or leave undefined to keep default behavior.
2008-02-02 04:38:37 +00:00