Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Remove support for /dev/cpu*. This code has never ...
details: https://anonhg.NetBSD.org/src/rev/0de80efa6f3c
branches: trunk
changeset: 504465:0de80efa6f3c
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sat Mar 03 18:04:34 2001 +0000
description:
Remove support for /dev/cpu*. This code has never done anything useful anyway.
diffstat:
sys/arch/arm/mainbus/cpu.c | 81 +-----------------------------------------
sys/arch/arm32/arm32/conf.c | 5 +-
sys/arch/arm32/include/conf.h | 10 +----
sys/arch/hpcarm/hpcarm/conf.c | 5 +-
sys/arch/hpcarm/include/conf.h | 9 +----
5 files changed, 7 insertions(+), 103 deletions(-)
diffs (199 lines):
diff -r 8226e05e1c2f -r 0de80efa6f3c sys/arch/arm/mainbus/cpu.c
--- a/sys/arch/arm/mainbus/cpu.c Sat Mar 03 17:49:58 2001 +0000
+++ b/sys/arch/arm/mainbus/cpu.c Sat Mar 03 18:04:34 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.9 2001/03/03 17:49:58 bjh21 Exp $ */
+/* $NetBSD: cpu.c,v 1.10 2001/03/03 18:04:34 bjh21 Exp $ */
/*
* Copyright (c) 1995 Mark Brinicombe.
@@ -454,83 +454,4 @@
}
}
-
-int
-cpuopen(dev, flag, mode, p)
- dev_t dev;
- int flag;
- int mode;
- struct proc *p;
-{
- struct cpu_softc *sc;
- int unit;
- int s;
-
- unit = minor(dev);
- if (unit >= cpu_cd.cd_ndevs)
- return(ENXIO);
-
- sc = cpu_cd.cd_devs[unit];
- if (!sc) return(ENXIO);
-
- s = splhigh();
- if (sc->sc_open) {
- (void)splx(s);
- return(EBUSY);
- }
-
- ++sc->sc_open;
- (void)splx(s);
-
- return(0);
-}
-
-
-int
-cpuclose(dev, flag, mode, p)
- dev_t dev;
- int flag;
- int mode;
- struct proc *p;
-{
- struct cpu_softc *sc;
- int unit;
- int s;
-
- unit = minor(dev);
- sc = cpu_cd.cd_devs[unit];
-
- if (sc->sc_open == 0) return(ENXIO);
-
- s = splhigh();
- --sc->sc_open;
- (void)splx(s);
-
- return(0);
-}
-
-
-int
-cpuioctl(dev, cmd, data, flag, p)
- dev_t dev;
- u_long cmd;
- caddr_t data;
- int flag;
- struct proc *p;
-{
- struct cpu_softc *sc;
- int unit;
-
- unit = minor(dev);
- sc = cpu_cd.cd_devs[unit];
-
- switch (cmd) {
- default:
- return(ENXIO);
- break;
- }
-
- return(0);
-}
-
/* End of cpu.c */
diff -r 8226e05e1c2f -r 0de80efa6f3c sys/arch/arm32/arm32/conf.c
--- a/sys/arch/arm32/arm32/conf.c Sat Mar 03 17:49:58 2001 +0000
+++ b/sys/arch/arm32/arm32/conf.c Sat Mar 03 18:04:34 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.48 2001/02/21 00:51:26 reinoud Exp $ */
+/* $NetBSD: conf.c,v 1.49 2001/03/03 18:04:34 bjh21 Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -212,7 +212,6 @@
#include "audio.h"
#include "midi.h"
#include "sequencer.h"
-#include "cpu.h"
#include "iic.h"
#include "rtc.h"
#include "vidcconsole.h"
@@ -291,7 +290,7 @@
cdev_lkm_init(NLKM,lkm), /* 35: loadable module driver */
cdev_audio_init(NAUDIO,audio), /* 36: generic audio I/O */
cdev_vidcvid_init(NVIDCCONSOLE,vidcconsole), /* 37: vidcconsole device */
- cdev_cpu_init(NCPU,cpu), /* 38: cpu device */
+ cdev_lkm_dummy(), /* 38: removed cpu device */
cdev_lkm_dummy(), /* 39: reserved */
cdev_mouse_init(NOPMS,pms), /* 40: PS2 mouse driver */
cdev_lkm_dummy(), /* 41: reserved */
diff -r 8226e05e1c2f -r 0de80efa6f3c sys/arch/arm32/include/conf.h
--- a/sys/arch/arm32/include/conf.h Sat Mar 03 17:49:58 2001 +0000
+++ b/sys/arch/arm32/include/conf.h Sat Mar 03 18:04:34 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.h,v 1.16 2001/02/21 00:51:27 reinoud Exp $ */
+/* $NetBSD: conf.h,v 1.17 2001/03/03 18:04:35 bjh21 Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe.
@@ -88,13 +88,6 @@
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, 0 }
/* open, close, write, ioctl */
-#define cdev_cpu_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
- (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
- (dev_type_stop((*))) enodev, \
- 0, seltrue, (dev_type_mmap((*))) enodev, 0 }
-
-/* open, close, write, ioctl */
#define cdev_vidcvid_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
@@ -138,7 +131,6 @@
cdev_decl(pms);
cdev_decl(beep);
cdev_decl(kbd);
-cdev_decl(cpu);
cdev_decl(iic);
cdev_decl(rtc);
cdev_decl(fcom);
diff -r 8226e05e1c2f -r 0de80efa6f3c sys/arch/hpcarm/hpcarm/conf.c
--- a/sys/arch/hpcarm/hpcarm/conf.c Sat Mar 03 17:49:58 2001 +0000
+++ b/sys/arch/hpcarm/hpcarm/conf.c Sat Mar 03 18:04:34 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.1 2001/02/23 03:48:09 ichiro Exp $ */
+/* $NetBSD: conf.c,v 1.2 2001/03/03 18:04:35 bjh21 Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -158,7 +158,6 @@
#include "audio.h"
#include "midi.h"
#include "sequencer.h"
-#include "cpu.h"
#include "ipfilter.h"
#include "rnd.h"
#include "sacom.h"
@@ -221,7 +220,7 @@
cdev_lkm_init(NLKM,lkm), /* 35: loadable module driver */
cdev_audio_init(NAUDIO,audio), /* 36: generic audio I/O */
cdev_lkm_dummy(), /* 37: reserved */
- cdev_cpu_init(NCPU,cpu), /* 38: cpu device */
+ cdev_lkm_dummy(), /* 38: removed cpu device */
cdev_lkm_dummy(), /* 39: reserved */
cdev_lkm_dummy(), /* 40: reserved */
cdev_lkm_dummy(), /* 41: reserved */
diff -r 8226e05e1c2f -r 0de80efa6f3c sys/arch/hpcarm/include/conf.h
--- a/sys/arch/hpcarm/include/conf.h Sat Mar 03 17:49:58 2001 +0000
+++ b/sys/arch/hpcarm/include/conf.h Sat Mar 03 18:04:34 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.h,v 1.1 2001/02/23 03:48:14 ichiro Exp $ */
+/* $NetBSD: conf.h,v 1.2 2001/03/03 18:04:35 bjh21 Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe.
@@ -66,13 +66,6 @@
dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
0, seltrue, (dev_type_mmap((*))) enodev, 0 }
-/* open, close, write, ioctl */
-#define cdev_cpu_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
- (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
- (dev_type_stop((*))) enodev, \
- 0, seltrue, (dev_type_mmap((*))) enodev, 0 }
-
/* open, close, read, ioctl */
#define cdev_prof_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
Home |
Main Index |
Thread Index |
Old Index