Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Dec 1997 22:16:46 -0200 (EDT)
From:      Joao Carlos Mendes Luis <jonny@coppe.ufrj.br>
To:        yokota@zodiac.mech.utsunomiya-u.ac.jp (Kazutaka YOKOTA)
Cc:        jonny@coppe.ufrj.br, cvs-committers@freebsd.org, cvs-all@freebsd.org, cvs-sys@freebsd.org, hackers@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject:   Re: cvs commit: src/sys/i386/conf LINT src/sys/i386/include console.h  mouse.h src/sys/i386/isa kbdio.h mse.c psm.c syscons.c
Message-ID:  <199712080016.WAA22731@gaia.coppe.ufrj.br>
In-Reply-To: <199712080001.JAA28710@zodiac.mech.utsunomiya-u.ac.jp> from Kazutaka YOKOTA at "Dec 8, 97 09:01:19 am"

next in thread | previous in thread | raw e-mail | index | archive | help
#define quoting(Kazutaka YOKOTA)
// >//   - The `psm' driver is made to recognize various models of PS/2 mice
// >//   and enable their extra features so that their additional buttons and
// >//   wheel/roller are recognized. The name of the detected model will be
// >//   printed at boot time.
// >
// >How much memory does this model info waste ?
// 
// int*5 = 20 bytes
// 
// >I don't like the ideia of using kernel memory (which cannot yet be
// >swapped out) for something almost useless.
// 
// In general, I agree that the kernel shouldn't waste memory.  But, the
// `psm' driver's info is NOT useless. I didn't add it just for fun. It
// is used by `moused' and possibly by the X server (I have contacted
// XFree86 people on this issue).

You said it would be "printed", so I imagine an array of strings.

Obviously, an (int) for type identifying by programs is useful.

// >This (and also the VGA type info) could be in some memory area that
//                 ~~~~~~~~~~~~~~~~~ 
// Which info are you talking about? I don't think the console driver
// currently distinguishes VGA types.

Take a look at the vga_probe() routine, in sys/pci/pcisupport.c
($Id: pcisupport.c,v 1.58 1997/11/11 01:50:06 wollman Exp $)

It is in ftp.freebsd.org -current sources tree right now.

					Jonny

--
Joao Carlos Mendes Luis			jonny@gta.ufrj.br
+55 21 290-4698				jonny@coppe.ufrj.br
Universidade Federal do Rio de Janeiro	UFRJ/COPPE/CISI
PGP fingerprint: 29 C0 50 B9 B6 3E 58 F2  83 5F E3 26 BF 0F EA 67



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712080016.WAA22731>