All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [FILE] Play command
Date: Wed, 13 Jul 2005 18:28:41 +0200	[thread overview]
Message-ID: <874qayacw6.fsf@student.han.nl> (raw)
In-Reply-To: <42D41B87.1020107@yahoo.fr> (Vincent Pelletier's message of "Tue, 12 Jul 2005 21:35:35 +0200")

Vincent Pelletier <subdino2004@yahoo.fr> 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




  reply	other threads:[~2005-07-13 16:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-12 19:35 [FILE] Play command Vincent Pelletier
2005-07-13 16:28 ` Marco Gerards [this message]
2005-07-13 21:08   ` Vincent Pelletier
2005-07-14  8:20     ` Yoshinori K. Okuji

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874qayacw6.fsf@student.han.nl \
    --to=metgerards@student.han.nl \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.