Skip to content

Commit 78a8089

Browse files
committed
More stuff to revert wrt ucom console.
1 parent cb7c129 commit 78a8089

2 files changed

Lines changed: 3 additions & 21 deletions

File tree

sys/arch/x86/x86/consinit.c

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: consinit.c,v 1.42 2025/10/10 13:18:18 manu Exp $ */
1+
/* $NetBSD: consinit.c,v 1.43 2025/10/10 18:15:10 skrll Exp $ */
22

33
/*
44
* Copyright (c) 1998
@@ -27,7 +27,7 @@
2727
*/
2828

2929
#include <sys/cdefs.h>
30-
__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.42 2025/10/10 13:18:18 manu Exp $");
30+
__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.43 2025/10/10 18:15:10 skrll Exp $");
3131

3232
#include "opt_kgdb.h"
3333
#include "opt_puc.h"
@@ -87,11 +87,6 @@ __KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.42 2025/10/10 13:18:18 manu Exp $");
8787
#include <dev/pci/puccn.h>
8888
#endif
8989

90-
#include "ucom.h"
91-
#if (NUCOM > 0)
92-
#include <dev/usb/ucomvar.h>
93-
#endif
94-
9590
#include "ukbd.h"
9691
#if (NUKBD > 0)
9792
#include <dev/usb/ukbdvar.h>
@@ -289,18 +284,6 @@ consinit(void)
289284
COM_FREQ, COM_TYPE_NORMAL, comcnmode);
290285
if (rv != 0)
291286
panic("can't init serial console @%x", consinfo->addr);
292-
293-
return;
294-
}
295-
#endif
296-
#if (NUCOM > 0)
297-
if (!strcmp(console_devname, "ucom")) {
298-
int unit = consinfo->addr;
299-
int speed = consinfo->speed;
300-
301-
if (ucom_cnattach(unit, speed) != 0)
302-
panic("can't init console %s", console_devname);
303-
304287
return;
305288
}
306289
#endif

sys/dev/usb/ucomvar.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: ucomvar.h,v 1.24 2025/10/10 13:14:35 manu Exp $ */
1+
/* $NetBSD: ucomvar.h,v 1.25 2025/10/10 18:15:11 skrll Exp $ */
22

33
/*
44
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -164,4 +164,3 @@ struct ucom_attach_args {
164164
int ucomprint(void *, const char *);
165165
int ucomsubmatch(device_t t, cfdata_t, const int *, void *);
166166
void ucom_status_change(struct ucom_softc *);
167-
int ucom_cnattach(int, int);

0 commit comments

Comments
 (0)