From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DskDS-0000jV-Tz for mharc-grub-devel@gnu.org; Wed, 13 Jul 2005 12:36:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DskDH-0000TZ-Rb for grub-devel@gnu.org; Wed, 13 Jul 2005 12:36:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DskD6-0000MW-9W for grub-devel@gnu.org; Wed, 13 Jul 2005 12:35:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DskD5-0000Ip-US for grub-devel@gnu.org; Wed, 13 Jul 2005 12:35:48 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DskE7-0002M7-NJ for grub-devel@gnu.org; Wed, 13 Jul 2005 12:36:52 -0400 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 5FC508BD0 for ; Wed, 13 Jul 2005 18:28:44 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by vscan-cn.han.nl (venus.han.nl [145.74.65.6]) (amavisd-new, port 10024) with ESMTP id 08277-07 for ; Wed, 13 Jul 2005 17:35:14 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 77CB589DB for ; Wed, 13 Jul 2005 18:28:41 +0200 (CEST) Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 35AD8C04B for ; Wed, 13 Jul 2005 18:28:41 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <42D41B87.1020107@yahoo.fr> From: Marco Gerards Date: Wed, 13 Jul 2005 18:28:41 +0200 In-Reply-To: <42D41B87.1020107@yahoo.fr> (Vincent Pelletier's message of "Tue, 12 Jul 2005 21:35:35 +0200") Message-ID: <874qayacw6.fsf@student.han.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (2.2.0) at vscan-cn.han.nl Subject: Re: [FILE] Play command X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 16:36:10 -0000 Vincent Pelletier writes: Hi Vincent, > Here is the play command source code and some tunes. > I don't submit a patch since I'm not sure where it will (and where the > tunes will) go. Cool! Won't it be nice to use a user readable fileformat? It is not a requirement from my side, just a suggestion. :) > With Marco we thought about contrib/i386/pc/play.c > > "Ancestors" of this code are: > GNU/Hurd > Grub 2 cat command > Grub 2 vga for inb & outb > > Contributors for the tunes: > FSF_Song I_Feel_Pretty Indiana_Jones_Theme Summertime : GNU/Hurd Marcus made those. > Beverly Hills Cop. Star Trek: The next Generation : Marco Gerards It is not the official theme from Star Trek: TNG, but a tune from an episode I liked a lot (Innerlight). > Tetris_Theme : me > > Vincent Pelletier > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > > iD8DBQFC1BuHFEQoKRQyjtURAtfnAJ0Z6EyHKmArEvcGMa7ioMu66zbFZgCglHXy > actaxo6QqQaFx/UfMrvtC+Q= > =C1S1 > -----END PGP SIGNATURE----- > > /* play.c - command to play a tune */ > /* > * GRUB -- GRand Unified Bootloader > * Copyright (C) 2003 Free Software Foundation, Inc. This should be 2002, 2004, 2005 if I am not mistaken. The years 2002, 2004 for the Hurd code and 2005 for your changes. I do not know where 2003 comes from. > /* Read a byte from a port. */ > static inline unsigned char > inb (unsigned short port) > { > unsigned char value; > > asm volatile ("inb %w1, %0" : "=a" (value) : "Nd" (port)); > asm volatile ("outb %%al, $0x80" : : ); > > return value; > } > > /* Write a byte to a port. */ > static inline void > outb (unsigned short port, unsigned char value) > { > asm volatile ("outb %b0, %w1" : : "a" (value), "Nd" (port)); > asm volatile ("outb %%al, $0x80" : : ); > } Is it possible to share this code? We need it for VGA and now for play, we will need it more often for other code which we will write in the future. Thanks, Marco