Commit Graph

1890 Commits

Author SHA1 Message Date
sevan
34d20af6e2 Enable axen, cdce, run, upgt, urtw, urtwn, uchcom, uslsa, u3ginit, u3g, ugensa in the GENERIC kernel.
Adjust some comments to match those of sys/arch/i386/conf/GENERIC
2017-01-02 03:22:30 +00:00
ozaki-r
dd8638eea5 Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input
The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
  - Where/When if_ipackets is counted up
  - Note that some drivers still update packet statistics in their own
    way (periodical update)
- Moved bpf_mtap run in softint
  - This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net
2016-12-15 09:28:02 +00:00
christos
ef2deb33e0 wildcard speaker attachments, now that we can handle many of them. 2016-12-13 20:42:15 +00:00
christos
219b8dae14 remove VAUDIOSPEAKER for now, will be done differently. 2016-12-10 23:03:22 +00:00
nat
03783bb56a Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
2016-12-08 11:31:08 +00:00
ozaki-r
c0e7885f20 Apply deferred if_start framework
if_schedule_deferred_start checks if the if_snd queue contains packets,
so drivers don't need to check it by themselves.
2016-12-08 01:12:00 +00:00
macallan
91eaa6ded9 add driver for Permedia 3 based graphics devices
from Naruaki Etomi, via PR 49518
2016-11-20 16:55:18 +00:00
nonaka
e4a54b4193 Added MSI/MSI-X and interrupt_distribute(9) support for powerpc. 2016-10-19 00:08:41 +00:00
ozaki-r
02711c8802 Fix typo 2016-10-03 01:23:55 +00:00
christos
9c7db92f68 MFREE -> m_free 2016-10-02 14:16:02 +00:00
scole
6887de85e4 Add note about 16 bit console brokenness 2016-09-16 17:32:36 +00:00
macallan
0f37c6ceec don't grab the interrupt lock around mixer operations 2016-08-24 14:41:51 +00:00
macallan
c9a4f92c3f adjust to dbdma changes 2016-07-15 22:10:47 +00:00
macallan
efb8d03127 - only unmap / free dbdma stuff when we actually mapped / allocated it
- use dbdma_free
now wdc_obio_detach() actually works without crashing
2016-07-15 21:11:12 +00:00
macallan
30ed9f0405 first step to make dbdma less hackish
- dbdma_alloc gets a new parameter to return the actual address of the
  buffer before being alignment-mangled so we can properly free it
- add dbdma_free which takes the pointer mentioned above
dbdma should really use bus_dma
2016-07-15 21:08:27 +00:00
macallan
232bfe5631 first step to make genfb work with /chaos/control - don't do config space
writes on /chaos.
tested by jak
2016-07-08 22:21:52 +00:00
macallan
4b12ccf7bd shut up another unused function warning 2016-07-06 13:30:42 +00:00
macallan
9004b96a22 shut up unused function warning 2016-07-06 13:28:34 +00:00
macallan
5c9d54fcb1 make platinumfb.c conditional on platinumfb
somehow that fell through the cracks too...
2016-06-16 14:51:56 +00:00
macallan
53df6693be somehow this fell through the cracks when I committed platinumfb.c
thanks chuq for noticing
2016-06-16 14:46:12 +00:00
macallan
1f03e35c95 g/c some leftovers from when we had static assignments of edge or level
triggers
2016-06-15 14:32:03 +00:00
dholland
85e3fbd2eb PR 51200 gets in libsa considered harmful: use kgets 2016-06-11 06:24:36 +00:00
macallan
2bebf08d85 add driver for 'platinum' onboard video found in Power Mac 7200 and possibly
other machines
from s_cole
2016-06-10 21:32:46 +00:00
ozaki-r
d938d837b3 Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.
2016-06-10 13:27:10 +00:00
macallan
147de8dbef report the power button to sysmon when possible 2016-06-01 05:27:40 +00:00
macallan
a3f93c3108 fix stupid tpyo
thanks chuq
2016-05-31 03:50:30 +00:00
macallan
a1f15ec7cc make sure we call sysmon_pswitch_event() from thread context 2016-05-31 02:17:18 +00:00
sevan
32e3745627 As instructed by Martin@, disable DKWEDGE_METHOD_APPLE for now as it causes a
fresh install in a dual boot scenario to fail. This is because fstab will be
referencing wd(4) and the kernel expecting dk(4).

Closes PR port-macppc/51160
2016-05-28 22:24:51 +00:00
chs
72af35a796 remove unused variables. 2016-05-23 01:45:41 +00:00
skrll
9724d4d249 Fix build 2016-04-28 14:00:23 +00:00
christos
8a7283ac4d undo unintended commit 2016-04-22 18:25:41 +00:00
christos
ec8d3496ba Elide unused variable warnings (Felix Deichmann) 2016-04-22 18:13:01 +00:00
gdt
af798e7b27 Disable uscanner in all kernel configs
As discussed on current-users@, SANE uses ugen via libusb and not
uscanner, so users are not well served by having uscanner.  Consensus
is that addressing how to adjust permissions for scanners should not
block restoring basic functionionality.

(Compile-tested only, but there are multiple reports of this being the
right approach.)
2016-03-19 23:21:02 +00:00
tsutsui
af8b911cf4 TAB/space cleanup. 2016-03-13 08:57:10 +00:00
chs
2f02870f3b zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
2016-02-14 19:54:19 +00:00
ozaki-r
9c4cd06355 Introduce softint-based if_input
This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!
2016-02-09 08:32:07 +00:00
christos
257ef94e95 Add mips fenv.h (From FreeBSD) 2015-12-21 17:02:32 +00:00
christos
c6ad517cd0 new powerpc fenv.h 2015-12-20 16:23:38 +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
dholland
25d3b9e7cb Final bit of PR 41200: headers that declare ioctls should include sys/ioccom.h.
This covers most if not all of the MD headers.

XXX: a lot of the ioctl definitions in some of these files are cutpasted.
2015-09-07 03:49:44 +00:00
uebayasi
7fe7089a02 Add pseudo-device ksyms' where options DDB' is used, because
config(1)/config(5) can't handle module dependency correctly at this
moment.

(This is another proof that shared file definition (`file xxx.c a|b')
is a bad idea.)
2015-08-21 01:52:07 +00:00
tsutsui
5636e147a4 Don't set garbages into BAT registers, which was broken in rev 1.25.
Should fix PR port-macppc/50018 (though there is no response for 3 weeks),
and should be pulled up to netbsd-7.
2015-07-26 14:24:29 +00:00
riastradh
445478ce67 MD rnd.h cleanups. Please let me know if I broke anything! 2015-04-13 21:18:40 +00:00
matt
ef9f2fbe65 Force main into .text 2015-01-09 22:02:18 +00:00
matt
a8f3e959bf Don't strip the .mrg since the symbols can be useful. 2014-12-24 00:36:09 +00:00
matt
dead6a7fe6 Make sure .data/.bss ends/starts on a 4 byte boundary. 2014-12-23 19:03:25 +00:00
manu
239cf5506d Remove unused extended attributes kernel options
As Masao Uebayashi pointed to me, UFS_EXTATTR_AUTOSTART, LFS_EXTATTR_AUTOSTART
and UFS_EXTATTR_AUTOCREATE are not used anywhere in the code. Remove them
as they have been obsolete for a long time:
UFS_EXTATTR_AUTOSTART was replaced by mount -o extattr
LFS_EXTATTR_AUTOSTART was created to match obsolete UFS_EXTATTR_AUTOSTART
UFS_EXTATTR_AUTOCREATE was replaced by sysctl vfs.ffs.extattr_autocreate
2014-11-16 16:01:39 +00:00
manu
2cab231d44 Support for UFS1 extended attributes in GENERIC and GENERIC-like kernels
This change just brings UFS1 extended attribute *support* in the kernel,
extended attributes are not enabled unless three conditions are met:
1) filesystem is UFS1 (newfs -O1)
2) .attribute/system and .attribute/user directories are created at fs root
3) filesystem is mounted with -o extattr

Some GENERIC kernels are obviously memory constrained, the extended
attributes options were not enabled for them, but just added commented out.
(kernel were considered memory constrained if QUOTA option was disabled)
2014-11-12 10:47:20 +00:00
macallan
350f4a6c19 appease gcc 4.8 2014-11-11 23:08:37 +00:00
chs
cf17e2bd8e in the initial asm code, save the interesting caller-saved registers
(containing "arg" and "len") across function calls to C code.
fixes kernels built with gcc 4.8.
2014-11-09 00:05:06 +00:00