From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: ata.c and sata disks
Date: Sat, 03 May 2008 18:59:54 -0400 [thread overview]
Message-ID: <1209855594.24895.5.camel@dv> (raw)
In-Reply-To: <bebc4b35e0b8a60a4675e1cb936e55ec@62.123.21.220>
On Sat, 2008-05-03 at 19:35 +0200, Marco Vega Trucillo wrote:
> Hi to all,
>
> I tried to modify ata.c simply add more ioaddress (I attach the diff file
> from 1.96 version), and it work and recognize
> my four sata disk on different pc.
I think it's generally considered unsafe to probe addresses above 0x3ff
without making sure they belong to a compatible device. The device
should be found on the PCI bus, and enabled if necessary.
> -/* try address of commons sata controller */
> -static const int grub_ata_ioaddress[] = {0x1f0, 0x170
> ,0x9800,0x9000,0x8800,0x18f8,0x18f0};
Your patch is reversed. Also, it would be better to make a patch
against the current CVS version.
> - for (port = 0; port <= 6; port++)
> + for (port = 0; port <= 1; port++)
Using sizeof would be great here. Unless we switch to using a dynamic
list of interface.
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2008-05-03 23:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-03 17:35 ata.c and sata disks Marco Vega Trucillo
2008-05-03 22:59 ` Pavel Roskin [this message]
2008-05-06 15:05 ` Robert Millan
2008-05-06 19:57 ` Marco Vega Trucillo
2008-05-06 20:38 ` PCI+ATA Marco Vega Trucillo
2008-05-06 21:00 ` ata.c and sata disks Marco Vega Trucillo
2008-05-07 9:00 ` Marco Gerards
2008-08-05 10:09 ` Marco Gerards
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=1209855594.24895.5.camel@dv \
--to=proski@gnu.org \
--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.