macallan
f0b7a070f3
device_t-ify
2011-08-18 02:56:21 +00:00
uebayasi
c16fddc807
Fix DEBUG build.
2011-07-28 04:06:09 +00:00
joerg
3eb244d801
Retire varargs.h support. Move machine/stdarg.h logic into MI
...
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
dyoung
0e0deeb06f
Switch MIPS and MIPS-ish architectures to new-style <sys/bus.h>. This
...
involves moving some inline bus_space(9) implementation into .c files.
2011-07-17 01:36:50 +00:00
matt
d218a6ab0a
Default to DB_ELF_SYMBOLS and DB_ELFSIZE 32
2011-07-09 16:58:04 +00:00
mrg
25d3d97151
don't mark delay as extern inline. it's defined normally in machdep.c.
2011-07-04 12:18:53 +00:00
dyoung
9aff02ebc1
#include <sys/bus.h> instead of <machine/bus.h>.
2011-07-01 20:57:45 +00:00
dyoung
cf10107d5d
#include <sys/bus.h> instead of <machine/bus.h>.
2011-07-01 18:51:52 +00:00
dyoung
59adf08e17
Per discussion at
...
<http://mail-index.netbsd.org/tech-kern/2010/04/02/msg007941.html >,
divide each machine's bus.h into bus_defs.h (constants & data types)
and bus_funcs.h (macro implementations of bus_space(9) routines and MD
prototypes).
Note that some bus_space(9) routines' implementation will move to .c
files from inline subroutines or macros in .h files.
I've only made the split for machine architectures where there is PCI.
All of the non-PCI-having architectures will require a similar split.
These #include files are not referenced by any (committed) Makefiles or
header files, yet. Changes to Makefiles, to <sys/bus.h>, and to some
more machine-dependent files will dribble in before I throw the switch.
2011-07-01 17:09:58 +00:00
wiz
4cbd24b23f
dependant -> dependent
2011-06-30 20:09:15 +00:00
rmind
8c68626da1
Convert simple_lock/ltsleep to mutex/condvar and malloc to kmem.
2011-06-09 02:49:32 +00:00
macallan
821ed8ac36
crmfb may run in more than 8 bit now so we need the other rasops* as well
2011-05-22 12:33:49 +00:00
macallan
fa88ee4233
add support for running the console in more than 8 bit
...
Now modes like 1680x1050 work. The hardware requires a stride of a multiple
of 32 bytes, with 1680 this requires 16bit colour.
2011-05-17 22:52:28 +00:00
macallan
9924280d80
add some constants, clarify some hw limitations
2011-05-17 22:26:33 +00:00
dyoung
a6b2b8396b
PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
...
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name. Correct that.
Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.
This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:
algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC
2011-05-17 17:34:47 +00:00
dyoung
3d7646747e
Now that GENERIC32_IPX3x builds again, fix some pci_attach_args
...
constification that I'd missed.
2011-05-11 17:49:31 +00:00
joerg
e958063324
Remove IRIX emulation
2011-04-26 16:36:40 +00:00
rmind
2626d57668
Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
...
consistency. Remove some unnecessary malloc.h inclusions as well.
2011-04-24 16:26:51 +00:00
plunky
7ed121adfb
use PRIx64 for printing 64-bit values
2011-04-13 16:22:09 +00:00
macallan
713b73c8c5
add mode setting support
...
If we find a monitor via DDC we switch to its preferred mode if it reports one,
otherwise stick with whatever the firmware set up.
2011-04-07 01:20:31 +00:00
macallan
0c7466a2ae
defflag CRMFB_DEBUG
2011-04-07 01:07:31 +00:00
macallan
4ac5047fdd
remove some old debug code
2011-04-04 22:50:36 +00:00
macallan
95c4a4389f
crmfb needs edid and friends now
2011-04-04 22:15:13 +00:00
macallan
9b94525a54
add DDC2 support. Not too useful yet.
2011-03-31 00:01:08 +00:00
macallan
e313f620d9
device_t-ify, use aprint_*_dev() where appropriate
2011-03-30 19:16:35 +00:00
macallan
5bcfbbb873
add a bunch of GBE registers, no functional change (yet)
2011-03-30 18:25:31 +00:00
tsutsui
24157545c8
Include <mips/mips_param.h> after MACHINE is defined.
2011-03-18 16:33:41 +00:00
tsutsui
7567d86ea5
Set correct struct clockframe .intr value for hardclock(9).
2011-03-10 17:22:51 +00:00
he
ac93dee5bb
Now that MACHINE is defined in user-land in either
...
mips/include/mips_param.h or powerpc/include/param.h, stop
trying to re-define it in the port-specific param.h files
when _KERNEL isn't defined.
2011-03-06 20:34:55 +00:00
bouyer
063f96f3c2
merge the bouyer-quota2 branch. This adds a new on-disk format
...
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.
See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
joerg
f795a05e24
Disable COMPAT_IRIX and related code. The usefulness is under discussion
...
and code that dereferences pointer into userland without proper checking
needs a full audit.
2011-03-05 23:38:40 +00:00
macallan
5bf2d32443
use hardware to draw characters, while there use vcons_replay_msgbuf()
2011-03-01 21:47:13 +00:00
matt
953a720806
Make sure that sgimips64 can build the O32 bootloaders
2011-02-26 16:26:58 +00:00
matt
d42a19b052
Don't rely on having a mips64eb toolchain.
2011-02-25 23:37:32 +00:00
matt
23347d39ed
Merge forward matt-nb5-mips64
...
Adapt to new interrupt/spl framework
Deal with arcbios calls being O32 and kernels being N32/N64.
Need to save/restore T8 across arcbios calls.
2011-02-20 07:59:49 +00:00
jmcneill
c5de7f33f9
validate cf_name in driver match method
2011-02-16 23:44:19 +00:00
macallan
afa90556a5
PMAP_NOCACHE -> PGC_NOCACHE where appropriate
2011-02-10 05:55:26 +00:00
rmind
9b6bd2d968
Remove clause 3 (UCB advertising clause) from the University of Utah
...
copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.
Extra verification by snj@.
2011-02-08 20:20:06 +00:00
tsutsui
6e3a84f222
Use CFATTACH_DECL_NEW() (no softc).
2011-01-28 10:20:28 +00:00
tsutsui
8831804ffb
Split device_t/softc. Tested on Indy.
2011-01-25 13:22:05 +00:00
tsutsui
fde2c776a7
KNF and misc cosmetics.
2011-01-25 13:12:39 +00:00
tsutsui
58b06e5f7b
Split device_t/softc. Tested on Indy.
2011-01-25 12:43:30 +00:00
tsutsui
59f7d57c5c
Some KNF and cosmetics.
2011-01-25 12:30:32 +00:00
tsutsui
f016e29297
u_intNN_t -> uintNN_t
2011-01-25 12:21:04 +00:00
tsutsui
984da15cb1
- MAXPHYS is enough for DMA xfer size (hpc->scsi_max_xfer seems too large)
...
- switch BUS_DMASYNC_*READ and BUS_DMASYNC_*WRITE properly in
bus_dmamap_sync(9) ops per each xfer dir
Tested on R5000 Indy.
2011-01-25 12:14:02 +00:00
tsutsui
2f9d0dfc33
Small bus_dma(9) tweaks:
...
- call bus_dmamap_create(9) after bus_dmamem_alloc(9) and bus_dmamem_map(9)
return successfully
- no need to use PAGE_SIZE for size of descriptor dmamap
- use bus_addr_t to store DMA address
- BUS_DMASYNC_PREWRITE is enough for host-to-device only descriptors
Tested on R5000 Indy.
2011-01-25 12:11:27 +00:00
joerg
5ed8b0e973
Define NOMAN earlier
2011-01-24 19:26:16 +00:00
joerg
98c78ad558
Define NOMAN earlier.
2011-01-23 13:18:02 +00:00
joerg
3c550524b5
Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
...
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().
Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
2011-01-22 19:19:14 +00:00
tsutsui
3ce80fd791
Use ether_aton_r() in sys/net/if_ethersubr.c instead of home grown copies.
...
Hint from ryo@. Tested on IP32 mec(4).
2011-01-10 13:29:29 +00:00