Commit Graph

30 Commits

Author SHA1 Message Date
ryo
4613293a54 add support MT7628/MediaTek LinkIt Smart 7688
by @hiroshi and me.
2016-10-05 15:54:58 +00:00
ryo
d721e9d6a1 KNF; indent, spaces and tabs.
No functional change.
2016-10-05 15:39:31 +00:00
skrll
4e8b65a17b Adjust evbmips_iointr to pass a clockframe pointer and use it for
pwmclock @ voyager.

Suggested by matt@

Hi macallan!
2016-08-26 15:45:47 +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
skrll
4e8e66439e Merge nick-nhusb
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
    - kern/48308
    - uhub status notification improvements
    - umass(4) probe fix (applied to HEAD already)
    - ohci(4) short transfer fix
2016-04-23 10:15:27 +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
matt
86475f594a Remove cfg1 manip, moved elsewhere.
Use aprintf_normal_dev for some debug printfs
2014-04-30 00:54:47 +00:00
matt
eef2f41538 Fix a few more register definitions. 2014-04-30 00:53:31 +00:00
matt
37f92b90d2 Instead of
mainbus0 (root): Ralink System Bus
be more explicit about the system:
mainbus0 (root): Mediatek MT7620 System Bus
2014-04-30 00:52:49 +00:00
matt
e1c34615b2 comment a #endif 2014-04-30 00:51:26 +00:00
matt
2e12761837 Add a static bus_space_handle_t for the core (sysctl) registers. 2014-04-30 00:51:01 +00:00
matt
31ad70f277 Stub for PCI/PCIe support for RT3883/MT7620 2014-04-29 17:21:24 +00:00
matt
272c0890ba Clean these up and move some defines to ralink_reg.h 2014-04-29 17:10:07 +00:00
matt
7cfc5595df More MT7620 definitions 2014-04-29 17:09:17 +00:00
matt
e5f2235165 Add PCI register definitions 2014-04-19 12:48:03 +00:00
christos
43ebc39121 kill sprintf 2014-03-26 17:41:15 +00:00
mrg
3b431c6785 remove some dead code, avoid set but unused variables. 2014-03-12 22:21:07 +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
matt
0bc3200029 Fix mii_statchg to take a 'struct ifnet *' instead of device_t. This fixes
problem with a common MDIO bus used for multiple interfaces.
Some drivers converted to CFATTACL_DECL_NEW.
2012-07-22 14:32:49 +00:00
matt
09fca0b71e EHCI_USBINTR is 4 bytes long so use EOWRITE4 2012-07-20 02:14:01 +00:00
oki
b06b44a7b8 add RT3050 SYSCTL_CFG0 values. 2012-02-12 01:51:52 +00:00
matt
645c524104 Fix early console support. 2012-02-01 02:05:14 +00:00
jym
325494fe33 Modify *ASSERTMSG() so they are now used as variadic macros. The main goal
is to provide routines that do as KASSERT(9) says: append a message
to the panic format string when the assertion triggers, with optional
arguments.

Fix call sites to reflect the new definition.

Discussed on tech-kern@. See
http://mail-index.netbsd.org/tech-kern/2011/09/07/msg011427.html
2011-09-27 01:02:33 +00:00
oki
a69c375f9d make compile with options RT3050. 2011-08-23 08:10:08 +00:00
matt
22c9b287d1 Deal with RTMEMSIZE no longer being defined 2011-08-03 17:34:27 +00:00
matt
e99aca1b8b Add some defintions for SYSCTL_CFG0 2011-08-03 16:27:15 +00:00
matt
df230b318d Deal with RA_CONSOLE_EARLY a little more sanely 2011-08-03 16:26:53 +00:00
cliff
136422be68 CFI NOR support for mips/ralink 2011-08-02 03:38:48 +00:00
matt
0fb6e91c9f Use <sys/ for bus.h and intr.h 2011-08-01 23:01:40 +00:00
matt
0062f2f291 Bring forward from matt-nb5-mips64. Support for Ralink RT3883 MIPS 74K SoC
from CradlePoint Technology.
2011-07-28 15:38:48 +00:00