Commit Graph

232494 Commits

Author SHA1 Message Date
christos
8fda20886b remove unused variable 2014-12-31 20:44:46 +00:00
christos
51cd9004b7 pass dev to disk_ioctl 2014-12-31 20:39:07 +00:00
christos
d1cb0983ac return error 2014-12-31 20:37:52 +00:00
christos
2758cd718c declare error 2014-12-31 20:37:10 +00:00
christos
df05bb66cc fix typo 2014-12-31 20:36:20 +00:00
mlelstv
2fbc202964 Retire disk_blocksize(). 2014-12-31 20:13:41 +00:00
christos
bac2fca3cf prototype update. 2014-12-31 20:04:56 +00:00
christos
281c044fc6 Mention which ioctls need to move to dk_ioctl, and don't allow wedges on
wedges.
2014-12-31 19:58:59 +00:00
christos
c60db2e923 make more drivers use disk_ioctl, and add a dev parameter to it so that
we can merge the "easy" disklabel ioctls to it. Ultimately all this will
go do dk_ioctl once all the drivers have been converted.
2014-12-31 19:52:04 +00:00
christos
577177e86e get the wedge info first if it exists, because this will support larger sizes. 2014-12-31 19:50:14 +00:00
mlelstv
308b0467c4 forgot this one. disk_set_info includes the functionality of disk_blocksize. 2014-12-31 19:37:35 +00:00
phx
585772f801 Make it compile with GCC48. 2014-12-31 18:43:18 +00:00
wiz
cb8d097ad2 New sentence, new line. Use more markup. 2014-12-31 18:19:21 +00:00
gdt
e1685159eb note that RBUS_IO_BASE issues are common to i386 and amd64 2014-12-31 18:16:32 +00:00
gdt
766c6ec224 Explain RBUS_IO_BASE/SIZE.
See also kern/32327.

Adapted from a patch by Björn Johannesson.
2014-12-31 18:14:55 +00:00
jmcneill
802779d87e fix typo in 1008MHz rate definition for rk3188 2014-12-31 18:14:14 +00:00
jmcneill
cad7817261 Cleanup freq setting a bit. Add a table of supported rates in ~200MHz steps
from 600MHz to 1608MHz, and let the cpu.frequency parameter match the
closest available freq (without going over +50MHz).

After updating APLL, wait for PLL lock.

Do APLL changes with PLL mode set to slow, rather than the previous
(and more complex) APLL/GPLL dance.
2014-12-31 18:09:05 +00:00
jmcneill
1f86325e8b add some more bits 2014-12-31 18:08:58 +00:00
ozaki-r
cba69a875a Use pserialize in bridge
This change enables lockless accesses to bridge member lists.
See locking notes in a comment to know how pserialize and
mutexes are used.

This change also provides support for softint-based interrupt
handling; pserialize readers can run in both HW interrupt and
softint contexts.

As usual, pserialize is used only when NET_MPSAFE on.
2014-12-31 17:36:24 +00:00
christos
a0f2bf7ede We can't sleep if we are called from the watchdog timeout. 2014-12-31 17:10:45 +00:00
christos
3be6bb2414 Centralize wedge ioctls in disk_ioctl. 2014-12-31 17:06:48 +00:00
jmcneill
457507773a add RK3188plus freq scaling, and a 1.4GHz mode. anything above 1GHz with all 4 cores enabled seems to have trouble locking apll, needs more work 2014-12-31 16:16:35 +00:00
martin
4062be8536 Move struct clockframe cf as extern declaration into ingenic_clockintr(),
to avoid a duplicate common.
2014-12-31 15:25:08 +00:00
mrg
1fa7346932 fix a confusion between dev_t and devmajor_t, and include the primary
minor when calling makedev().
2014-12-31 08:55:18 +00:00
mlelstv
bdddf44518 disk_blocksize and disk_set_info relay the same information
to the disk subsystem.

Make disk_set_info also set blocksize shift values.
Remove every call to disk_blocksize.

Keep disk_blocksize for ABI compatibility, make it also set dg_secsize.
2014-12-31 08:24:50 +00:00
mrg
fbfbb2ece8 move xorg-server.pc's SDK_REQUIRED_MODULES into the local Makefile. 2014-12-30 22:07:21 +00:00
jmcneill
3c14839044 MULTIPROCESSOR works now 2014-12-30 21:29:43 +00:00
jmcneill
1914bfd31d do armv7_dcache_inv_all before cortex_mpstart on secondaries 2014-12-30 21:24:36 +00:00
christos
37efed977c destroy the pool and the mutex when detaching. 2014-12-30 20:57:37 +00:00
christos
ef78102379 - only create ccd's when we ask them to be created.
- keep track of the number of active ccd's so that we don't modunload and
  crash
- fix formatting.
- don't attach 4, the argument is not used.
2014-12-30 20:29:42 +00:00
christos
e0e2723470 return quickly from the GET ioctl to avoid playing with NULL. 2014-12-30 20:18:44 +00:00
christos
8d8eaf1f35 Don't forget to destroy the mutex before freeing the nat struct on a failed
load.
XXX: pullup -7
2014-12-30 19:11:44 +00:00
mlelstv
c5ff2ab77e Fix locking error.
Clear EPASSTHROUGH return value from disk_ioctl.
Add missing wedge ioctls.
2014-12-30 19:11:05 +00:00
jmcneill
806354ed2f Actually set slave addr / reg. Wait for start irq after sending start before
transferring data. Add RKIIC_DEBUG kernel option.
2014-12-30 18:57:36 +00:00
mrg
4fe8b4e652 - this is midirecord(1) not midiorecord(1)
- add the -o handling to the getopt() and man page
- bump date
2014-12-30 18:52:47 +00:00
palle
91a8591307 sp_tlb_flush_*: Avoid run-time check for cpu type/implementation by installing correct function in cache_setup_funcs() 2014-12-30 18:29:20 +00:00
jmcneill
211b6cbf4d specify irq numbers for rkiic so we can avoid polled mode when possible 2014-12-30 17:28:52 +00:00
jmcneill
eb139c05f1 drop clock rate to 400kHz 2014-12-30 17:28:11 +00:00
jmcneill
ff912df066 enable rkiic and iic 2014-12-30 17:16:29 +00:00
jmcneill
4642cd94ee add I2C driver 2014-12-30 17:15:31 +00:00
jnemeth
026ad6683b Slowly bring this thing kicking and screaming into the 21st century:
- use struct disk_geom
- add wedge support
2014-12-30 12:42:16 +00:00
jmcneill
d21eda17ec MMC0/VBUS GPIO changes for Radxa Rock, from FUKAUMI Naoki <fun@naobsd.org>.
XXX Need to find a way to handle board-specific configurations.
2014-12-30 12:38:20 +00:00
jmcneill
89766d7638 Fix inverted logic of card_detect_n bit, from FUKAUMI Naoki <fun@naobsd.org>. 2014-12-30 12:36:06 +00:00
wiz
6fc026f9ce Sync usage with man page. 2014-12-30 12:14:34 +00:00
wiz
bd9cac43f4 Describe -T. Sync SYNOPSIS with options. Sort options.
Remove trailing whitespace. Use more markup.
2014-12-30 12:10:07 +00:00
martin
3cbe7ed1ad Revise previous: with RUN_SILENT there is never a good reason to create
the output window unless there is actually output to display.
2014-12-30 10:10:22 +00:00
nonaka
a8f2caddcc Also need to flush an object from CPU domain. 2014-12-30 09:58:53 +00:00
mrg
c0b0b4cb23 fix !AUDIO_DEBUG build. 2014-12-30 07:39:15 +00:00
mrg
c180abe317 - fix a confusion between midi(4) unit and connected to sequencer
devices.
- minor comment/debug clean ups.

fixes problems attempting to read or write from the right midi(4)
device using the sequencer(4) device when one or more of the
non-final devices fails to open with midiseq_open().
2014-12-30 07:33:44 +00:00
mrg
90a7d6260e - check sc->dying after sleeping in several more places, and
convert it into EIO error where necessary.
- remove a wrong additional mutex_exit() call.
- make sure to check sc->dying under the device lock.
2014-12-30 07:28:34 +00:00