From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 12 18:12:22 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1D6816A4CE for ; Sat, 12 Mar 2005 18:12:22 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88F6343D31 for ; Sat, 12 Mar 2005 18:12:21 +0000 (GMT) (envelope-from alexjeffburke@gmail.com) Received: by wproxy.gmail.com with SMTP id 70so1282908wra for ; Sat, 12 Mar 2005 10:12:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=LOSqRXwjrQAWvz7rqXjbfv/IHRi4dJ4fq4nR2QSUvvUZTQOIMot1owPQ1ZfDc0dNn1YoPY9sQ4k7dzuG4sBQqzmlqJhXSH40HixERp+h6o/v8bG7rU5OQl6v6H2lg9K6ws4qoN/sWY79J0ZY/HVzGQ+s7VbrjGUJLZYEUJW1QRQ= Received: by 10.54.77.7 with SMTP id z7mr757732wra; Sat, 12 Mar 2005 10:12:19 -0800 (PST) Received: by 10.54.37.43 with HTTP; Sat, 12 Mar 2005 10:12:19 -0800 (PST) Message-ID: Date: Sat, 12 Mar 2005 18:12:19 +0000 From: Alex Burke To: FreeBSD-HACKERS Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Low level hardware access in FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alex Burke List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2005 18:12:22 -0000 Hi, I am just wondering how I can access either BIOS calls, or preferably registers under FreeBSD? I am trying to write a simple system capable of displaying graphics on the screen, and I am pretty sure I can mmap the VGA memory to my programs address space. However, to be able to output graphics onto the screen I think I need to change the state of the VGA registers from text mode (I am guessing thats what the console driver uses) to graphical mode (of which i know there exist a couple) - but I think that involves programming registers and I dont know how to do that under FreeBSD. Also, for the FreeBSD console driver to pick the console back up once it finished working, would I be required to reset the VGA registers back to text mode? Thanks, Alex J Burke.