From owner-freebsd-doc Thu Jul 16 17:10:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA20224 for freebsd-doc-outgoing; Thu, 16 Jul 1998 17:10:27 -0700 (PDT) (envelope-from owner-freebsd-doc@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA20217; Thu, 16 Jul 1998 17:10:23 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id JAA24238; Fri, 17 Jul 1998 09:39:38 +0930 (CST) Message-ID: <19980717093938.E566@freebie.lemis.com> Date: Fri, 17 Jul 1998 09:39:38 +0930 From: Greg Lehey To: Servidor Cc: FreeBSD Questions Subject: Re: Programing in BSD References: <199807161449.QAA02968@ic.infase.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199807161449.QAA02968@ic.infase.es>; from Servidor on Fri, Jan 02, 1998 at 04:57:58PM +0100 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Friday, 2 January 1998 at 16:57:58 +0100, Servidor wrote: > Hello! > > I'm student of computer science, and I have a little problem. I'm working > with freeBSD and I must to program the UART. I have programed the UART in > dos and linux, but I never do it in freeBSD. Please don't send this kind of question to FreeBSD-doc, a mailing list concerned with improving the documentation of FreeBSD. The correct list is FreeBSD-questions. > I don't know how i can access to a position of memory where a port of the > UART is mapped, I would like to know wich libraries of freeBSD i must to > use and wich instructions. PCs normally don't memory map I/O devices, they address them via a separate address space ("I/O space"). In UNIX (including Linux), the UART is controlled by the system, so you don't "program the UART", you write a driver. You'll find the source in /usr/src/sys/i386/isa/sio.c. If you really *do* want to access the I/O registers from user space, an action which is strongly deprecated, open /dev/io. See io(4) for (few) more details. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message