Commit Graph

171762 Commits

Author SHA1 Message Date
martin
4956be1f47 Make struct pcib_softc explicit in our softc. 2008-07-20 17:18:21 +00:00
martin
f3b6f1bea8 Explicitly add struct pcib_softc to the softc since the pcib functions
we call expect this.
2008-07-20 16:59:53 +00:00
martin
d2849ba366 Rearange softc so it starts with a struct pcib. We reuse the x86 pcib code
which assumes this.
2008-07-20 16:52:33 +00:00
martin
e394f32ae0 Make the softc externally visible, so other bridges reusing this code
don't have to "get it right" manually.
2008-07-20 16:50:29 +00:00
tsutsui
1a160ac866 Specify volatile to some pointers to access DMA registers. 2008-07-20 16:35:27 +00:00
tsutsui
471f4d63c3 No need to specify '&' to get array's address.
No binary changes.
2008-07-20 16:28:24 +00:00
veego
e6e078517c Add CLEANFILES for ${BUILT_SRCS} (vis.h) 2008-07-20 16:25:35 +00:00
tsutsui
b55114eae7 Fix pointer arithmetic botch in rev 1.37. 2008-07-20 16:23:38 +00:00
pooka
83548151e2 assert -> KASSERT 2008-07-20 16:18:13 +00:00
pooka
0217e22507 You must untypo what you have typoed: rumpnode_if.h -> rumpvnode_if.h 2008-07-20 16:14:22 +00:00
he
6512b04025 The build options for the library parts are mostly located in this
file.  So, in order to better support UPDATE builds, add a dependency
on this file for object files in subdirectories using this file.
2008-07-20 15:56:44 +00:00
veego
5eea48350f Add a CLEANFILES line to remove the generated file defs.h 2008-07-20 14:36:52 +00:00
blymn
762e875434 Add locking around veriexec operations to prevent all sorts of badness
happening.  This fixes kern/38646.
2008-07-20 08:50:20 +00:00
bjs
616225d114 add forgotten initialization/destruction for tsk_lock. 2008-07-20 03:02:22 +00:00
bjs
e63e7d81db Add a forgotten mtsleep(). 2008-07-20 02:58:40 +00:00
uwe
e58a3edb13 When doing pointer arithmetic to compute limit cast bootp to pointer
type of correct signedness.  Caught by lint.
2008-07-20 02:06:37 +00:00
lukem
6543a91fea Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
lukem
0c4ddb1599 Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 01:09:06 +00:00
martin
41198d5648 Make sure callouts are initialized before any access (including stopping
them)
2008-07-20 01:05:27 +00:00
lukem
2fe2731d3f Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
lukem
f606aab441 Remove the \n from the __COPYRIGHT example; what(1) stops extracting
at them, so we lose most of the message.
2008-07-20 00:51:19 +00:00
christos
d6a52d8265 add -1 to usage 2008-07-20 00:11:04 +00:00
jmcneill
a9b5dcaa70 ioctl compatibility for v4l2 and drm 2008-07-19 23:01:52 +00:00
mrg
8754a8144b move an XXXNETBSD along with the assignment that moved 2008-07-19 22:23:14 +00:00
mrg
f9c3ff3858 merge cornflakes from git-change-04893aa99abfbed8eb6d7067a974fa1f31193c87. 2008-07-19 22:22:17 +00:00
mrg
acf7df4527 fix a merge error 2008-07-19 22:14:13 +00:00
mrg
b0c27870b5 merge cornflakes from git-change-04893aa99abfbed8eb6d7067a974fa1f31193c87. 2008-07-19 22:10:09 +00:00
mrg
60c992bef9 import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87. 2008-07-19 22:05:02 +00:00
rmind
103b767319 - From Paul Goyette: correct the description of mutex_spin_exit.
- Remove sentence about lockmgr(9), as it is finally replaced.
- Note atomic_ops(3) and membar_ops(3) man pages.
2008-07-19 21:21:38 +00:00
jmcneill
a8309870a5 Pull in agp_i810.h so the agp borrow hack works on i915drm. 2008-07-19 20:08:39 +00:00
jmcneill
e3f4f88866 PCI_PRODUCT works on pa_id, not pa_device 2008-07-19 17:45:53 +00:00
bjs
61ffbe1fec dev->pci_device should be assigned PCI_PRODUCT(pa->pa_id), not the id
itself.
2008-07-19 17:44:14 +00:00
bjs
79b565981a use ALIGN() instead of rolling our own. 2008-07-19 17:28:14 +00:00
bjs
e87f5b54be set dev->kdev = kdev at open time, not in drm_ioctl. 2008-07-19 17:23:04 +00:00
reinoud
3efc85e77e Limit sectorsize to max. 4096 bytes. This prevents a panic when declaring
the node pool since standard pools are limited upto 4096 aparently.
Pagesize limit even?
2008-07-19 16:36:40 +00:00
reinoud
aa9f26d0bd Use the allocation descriptor types selected on mount when growing from an
internal to an extent recording.
2008-07-19 16:23:09 +00:00
reinoud
a2718fb081 Use ecma-167 constants instead of homegrown to prevent double mapping. 2008-07-19 16:14:09 +00:00
reinoud
a1f7916969 Choose which time of allocation descriptors to use on new nodes based on
the number of partition mappings.
2008-07-19 16:00:35 +00:00
jmcneill
4a648a5b9a Implement drm_drawable gunk and drm_locked_task, untested. i915drm links now. 2008-07-19 14:15:11 +00:00
kardel
b6ecf59844 buf_destroy() an embedded buffer before returning memory to pool
issue detected by LOCKDEBUG panicing about "allocation contains active lock"
2008-07-19 13:58:08 +00:00
kardel
ccab995bc6 Initialize timecounter_lock at IPL_HIGH. Prevents a "locking against myself"
when com.c (options PPS_SYNC) delivers a PPS time stamp during clock
interupt processing.
2008-07-19 10:33:58 +00:00
bjs
d63b70db6d Change IPL of DRM_SPININIT macro to IPL_NONE. Currently, the only
mutex initialized by this macro is the dma lock, which certainly
should not be IPL_VM.  The priorities of the other locks should be
revisited.

Also, in DRM_WAIT_ON, enforce the policy of "drm returns -errno
to shared code" (this used to be implemented via a macro).
2008-07-19 10:09:01 +00:00
mrg
3cbb0df829 bare-bones entry for mesa-drm 2008-07-19 07:37:52 +00:00
mrg
41097c94f6 support new drm.
XXX: not fully enabled yet.  config(1) has a makeoptions bug
with complex conditionals.  see files.drm / files.pcidrm for
some instructions on how to enable it.
2008-07-19 07:26:54 +00:00
mrg
242955a02d XXX: remove the (volatile uint32_t *) cast from atomic_read() macro for now.
now all bsd drm drivers build except for i915 which fails to link.
2008-07-19 07:03:07 +00:00
mrg
cc28125d9e XXX: always return DRM_MIGHT_BE_AGP for now -- need to implement the
XXX: releant bus controller grovelling for netbsd pci.
2008-07-19 07:02:15 +00:00
mrg
310b3512f5 XXX rename some macro internal variable names to not clash with users. 2008-07-19 06:48:44 +00:00
mrg
c97fa01b94 rename some inner local variables away from outer scope name conflicts 2008-07-19 06:42:07 +00:00
mrg
215f2c6a8b rename a local variable from free to myfree 2008-07-19 06:40:01 +00:00
mrg
8ff8b7b272 pull over many many changes from netbsd-current sys/dev/{,pci/}drm/.
make the mesa-drm style Makefile's actually run on netbsd (but i doubt
they work yet.)

this still has a lot to go.  it doesn't work yet, but it's getting
close.

most of this is from other authors than myself:  yorrick, drochner,
jared, bjs, all contributed a lot more than i have so far, but there's
a bunch of clean up from myself in here as well.
2008-07-19 06:18:23 +00:00