From c49214cd87880237b23189deceeab2702c5b3260 Mon Sep 17 00:00:00 2001 From: oga <> Date: Sun, 25 Nov 2007 17:11:11 +0000 Subject: [PATCH] Make agp attach as a device. This means that many more agp bridges actually get detected and attached. Also adds a kernel api for manipulating agp. Enable this on i386 and amd64. "I think you should commit it" deraadt@, ok matthieu. Looked over by several others. --- src/etc/etc.amd64/MAKEDEV.md | 6 +++++- src/etc/etc.i386/MAKEDEV.md | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/etc/etc.amd64/MAKEDEV.md b/src/etc/etc.amd64/MAKEDEV.md index 57e2dd0b..eb11c50f 100644 --- a/src/etc/etc.amd64/MAKEDEV.md +++ b/src/etc/etc.amd64/MAKEDEV.md @@ -1,5 +1,5 @@ vers(__file__, - {-$OpenBSD: MAKEDEV.md,v 1.20 2007/11/25 15:46:06 tedu Exp $-}, + {-$OpenBSD: MAKEDEV.md,v 1.21 2007/11/25 17:11:11 oga Exp $-}, etc.MACHINE)dnl dnl dnl Copyright (c) 2001-2006 Todd T. Fries @@ -20,6 +20,8 @@ dnl __devitem(apm, apm, Power Management Interface)dnl __devitem(nvram, nvram, NVRAM access)dnl _mkdev(nvram, nvram, {-M nvram c major_nvram_c 0 440 kmem-})dnl +_mkdev(agp, agp*, {-M agp$U c major_agp_c $U + MKlist[${#MKlist[*]}]=";[ -e agpgart ] || ln -s agp$U agpgart"-})dnl _TITLE(make) _DEV(all) _DEV(ramdisk) @@ -65,6 +67,7 @@ _DEV(urio, 65) _DEV(usb, 61) _DEV(uscan, 77) _TITLE(spec) +_DEV(agp, 87) dnl _DEV(apm, 21) _DEV(apm, 83) _DEV(au, 42) @@ -131,6 +134,7 @@ target(all, ccd, 0, 1, 2, 3)dnl target(all, bktr, 0)dnl target(all, nvram)dnl target(all, bthub, 0, 1, 2)dnl +target(all, agp, 0)dnl twrget(ramd, wsdisp, ttyC, 0)dnl target(ramd, fd, 0)dnl target(ramd, mcd, 0)dnl diff --git a/src/etc/etc.i386/MAKEDEV.md b/src/etc/etc.i386/MAKEDEV.md index 2510184f..a826936e 100644 --- a/src/etc/etc.i386/MAKEDEV.md +++ b/src/etc/etc.i386/MAKEDEV.md @@ -1,5 +1,5 @@ vers(__file__, - {-$OpenBSD: MAKEDEV.md,v 1.39 2007/11/25 15:46:06 tedu Exp $-}, + {-$OpenBSD: MAKEDEV.md,v 1.40 2007/11/25 17:11:11 oga Exp $-}, etc.MACHINE)dnl dnl dnl Copyright (c) 2001-2006 Todd T. Fries @@ -17,8 +17,11 @@ dnl ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF dnl OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. dnl dnl +__devitem(agp, agp*, AGP bridge)dnl __devitem(apm, apm, Power management device)dnl __devitem(nvram, nvram, NVRAM access)dnl +_mkdev(agp, agp*, {-M agp$U c major_agp_c $U + MKlist[${#MKlist[*]}]=";[ -e agpgart ] || ln -s agp$U agpgart"-})dnl _mkdev(nvram, nvram, {-M nvram c major_nvram_c 0 440 kmem-})dnl _TITLE(make) _DEV(all) @@ -65,6 +68,7 @@ _DEV(urio, 65) _DEV(usb, 61) _DEV(uscan, 77) _TITLE(spec) +_DEV(agp, 87) _DEV(apm, 21) _DEV(au, 42) _DEV(bio, 79) @@ -132,5 +136,6 @@ target(all, bktr, 0)dnl target(all, gpio, 0, 1, 2)dnl target(all, nvram)dnl target(all, bthub, 0, 1, 2)dnl +target(all, agp, 0)dnl twrget(ramd, wsdisp, ttyC, 0)dnl target(ramd, mcd, 0)dnl