Commit Graph

1009 Commits

Author SHA1 Message Date
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
sekiya b8d5f67d45 Define relevent register data so that we can turn off sync-on-green when needed. 2008-02-02 04:11:02 +00:00
jmcneill de1fd2ebad Use auconv to create our encoding list for us. 2008-01-26 22:06:16 +00:00
tsutsui de92c0b2bc Replace bootinfo stuff on sgimips (which has been disabled in bootloader)
with ones used on arc (which has been working for a year) and
enable it in bootloader. Tested on IP32.
2008-01-26 14:35:24 +00:00
tsutsui af15dc6cc2 - call mec_reset() to make sure DMA stopped (inspired by OpenBSD)
- also stop DMA in mec_reset() before resetting chip
- set MAC address to MAC_STATION reg in mec_attach(), not in mec_reset()

Possibly fixes occasional interrupt storm from mec(4) (i.e. hangup) at boot.
2008-01-26 14:28:49 +00:00
joerg 3615cf7715 Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
2008-01-20 18:09:03 +00:00
he 78d5b85f20 Remove two now-unused local variables. 2008-01-20 14:14:11 +00:00
dyoung b480b62270 Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange().  Check for
a non-ENXIO error return from mii_mediachg().  (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines.  There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
        on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run.  I have compiled macppc, sparc64, i386.  I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.
2008-01-19 22:10:14 +00:00