Subject: Intel SATA RAID
To: None <tech-kern@netbsd.org>
From: Simas Mockevicius <symka@netbsd.vejas.lt>
List: tech-kern
Date: 12/05/2003 11:36:03
------------p02wGbdqy95O4d5zDJTsmw
Content-Type: text/plain; charset=iso-8859-13; format=flowed

Hi,

there is a patch to make work 82801ER SATA/RAID controler.
Because SATA raid is not yet suported it is to make kernel
and system recognize this controler as piixide one.
I have tested it on 2 my servers runing NetBSD-current with the ABIT 
motherboard.
kernel now finds all SATA HDD's attached to this controler as wd* and makes 
them work at 133MHz speed. To make RAID, I am using software raid :) if 
there is a people
wants to make a drivers for SATA drivers, I can test it on my mashines.

Sincerely,
Simas Mockevicius

--
My brains runs on NetBSD-current...
------------p02wGbdqy95O4d5zDJTsmw
Content-Disposition: attachment;
	filename="piixide.c.diff"
Content-Type: application/octet-stream;
	name="piixide.c.diff"
Content-Transfer-Encoding: Base64

SW5kZXg6IHBpaXhpZGUuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBm
aWxlOiAvY3Zzcm9vdC9zcmMvc3lzL2Rldi9wY2kvcGlpeGlkZS5jLHYKcmV0
cmlldmluZyByZXZpc2lvbiAxLjMKZGlmZiAtYiAtdSAtcjEuMyBwaWl4aWRl
LmMKLS0tIHBpaXhpZGUuYwkyNyBOb3YgMjAwMyAyMzowMjo0MCAtMDAwMAkx
LjMKKysrIHBpaXhpZGUuYwk1IERlYyAyMDAzIDA5OjI1OjU0IC0wMDAwCkBA
IC0xMzMsNiArMTMzLDE0IEBACiAJICAiSW50ZWwgODI4MDFFQiBTZXJpYWwg
QVRBIENvbnRyb2xsZXIiLAogCSAgYXJ0aXNlYV9jaGlwX21hcCwKIAl9LAor
CS8qCisJICogSW5pdGlhbCBTQVRBIFJhaWQgU3VwcG9ydAorCSAqLworCXsg
UENJX1BST0RVQ1RfSU5URUxfODI4MDFFUl9TQVRBLAorCSAgMCwKKwkgICJJ
bnRl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