mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Sync with sys/i386/isa/syscons.c revision 1.245.
This commit is contained in:
parent
de5bb42d20
commit
9fcc42c7c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32480
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: syscons.c,v 1.69 1998/01/10 13:31:27 kato Exp $
|
||||
* $Id: syscons.c,v 1.70 1998/01/12 15:34:17 kato Exp $
|
||||
*/
|
||||
|
||||
#include "sc.h"
|
||||
@ -131,6 +131,8 @@ static scr_stat main_console;
|
||||
static scr_stat *console[MAXCONS];
|
||||
#ifdef DEVFS
|
||||
static void *sc_devfs_token[MAXCONS];
|
||||
static void *sc_mouse_devfs_token;
|
||||
static void *sc_console_devfs_token;
|
||||
#endif
|
||||
scr_stat *cur_console;
|
||||
static scr_stat *new_scp, *old_scp;
|
||||
@ -881,8 +883,12 @@ scattach(struct isa_device *dev)
|
||||
|
||||
#ifdef DEVFS
|
||||
for (vc = 0; vc < MAXCONS; vc++)
|
||||
sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR, UID_ROOT,
|
||||
GID_WHEEL, 0600, "ttyv%n", vc);
|
||||
sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "ttyv%n", vc);
|
||||
sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "sysmouse");
|
||||
sc_console_devfs_token = devfs_add_devswf(&scdevsw, SC_CONSOLE, DV_CHR,
|
||||
UID_ROOT, GID_WHEEL, 0600, "consolectl");
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user