Subject: Re: 3ware management utilities -- any cluse?
To: Brian Buhrow <buhrow@lothlorien.nfbcal.org>
From: Masaru OKI <oki@netbsd.org>
List: current-users
Date: 12/13/2002 10:58:33
--------_3DF93A2830A605836A70_MULTIPART_MIXED_
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
On Thu, 12 Dec 2002 17:32:22 -0800
Subject: Re: 3ware management utilities -- any cluse?
buhrow@lothlorien.nfbcal.org (Brian Buhrow) wrote:
> Following up on my own question, I have found the FreeBSD 3dmd utility,
> which seems to run fine, except that it wants to talk to an actual
> /dev/twex device. I believe I see that portion of the driver in the
> FreeBSD-current source tree, and wonder if anyone has tried to port that
> portion of the 3ware escalade's functionality to NetBSD?
I tried to port ioctls on the twe driver (for -current). reading status
work fine with FreeBSD 3dmd, but writing parameter is not tested.
for test: put tweio.h into sys/dev/pci, apply attached patch, compile
kernel, reboot, MAKEDEV twe0, and run FreeBSD 3dmd.
--
Masaru OKI <oki@netbsd.org>
--------_3DF93A2830A605836A70_MULTIPART_MIXED_
Content-Type: application/octet-stream; name="src.diff"
Content-Disposition: attachment;
filename="src.diff"
Content-Transfer-Encoding: base64
SW5kZXg6IGV0Yy9ldGMuaTM4Ni9NQUtFREVWDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2N2c3Jv
b3QvYmFzZXNyYy9ldGMvZXRjLmkzODYvTUFLRURFVix2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEu
MTg3DQpkaWZmIC11IC1yMS4xODcgTUFLRURFVg0KLS0tIGV0Yy9ldGMuaTM4Ni9NQUtFREVWCTIw
MDIvMTIvMDcgMTk6NTA6NTgJMS4xODcNCisrKyBldGMvZXRjLmkzODYvTUFLRURFVgkyMDAyLzEy
LzEzIDAxOjQwOjQ1DQpAQCAtMTgxLDcgKzE4MSw3IEBADQogCW1ha2VkZXYgY2NkMCBjY2Qx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YvbWFqb3JzLmkzODYJMjAwMi8xMi8wNyAx
OTo0ODozMAkxLjYNCisrKyBzeXMvYXJjaC9pMzg2L2NvbmYvbWFqb3JzLmkzODYJMjAwMi8xMi8x
MyAwMTo0MDo0NQ0KQEAgLTk1LDMgKzk1LDQgQEANCiBkZXZpY2UtbWFqb3IJdmVyaWZpZWRleGVj
CWNoYXIgOTQJCQl2ZXJpZmllZGV4ZWMNCiBkZXZpY2UtbWFqb3IJZndpc28JCWNoYXIgOTUJCQlm
d2lzbw0KIGRldmljZS1tYWpvcglkcHQJCWNoYXIgOTYJCQlkcHQNCitkZXZpY2UtbWFqb3IJdHdl
CQljaGFyIDk3CQkJdHdlDQo=
--------_3DF93A2830A605836A70_MULTIPART_MIXED_
Content-Type: application/octet-stream; name="tweio.h"
Content-Disposition: attachment;
filename="tweio.h"
Content-Transfer-Encoding: base64
LyotDQogKiBDb3B5cmlnaHQgKGMpIDIwMDAgTWljaGFlbCBTbWl0aA0KICogQ29weXJpZ2h0IChj
KSAyMDAwIEJTRGkNCiAqIEFsbCByaWdodHMgcmVzZXJ2ZWQuDQogKg0KICogUmVkaXN0cmlidXRp
b24gYW5kIHVzZSBpbiBzb3VyY2UgYW5kIGJpbmFyeSBmb3Jtcywgd2l0aCBvciB3aXRob3V0DQog
KiBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQgdGhhdCB0aGUgZm9sbG93aW5n
IGNvbmRpdGlvbnMNCiAqIGFyZSBtZXQ6DQogKiAxLiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNl
IGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodA0KICogICAgbm90aWNlLCB0aGlz
IGxpc3Qgb2YgY29uZGl0aW9ucyBhbmQgdGhlIGZvbGxvd2luZyBkaXNjbGFpbWVyLg0KICogMi4g
UmVkaXN0cmlidXRpb25zIGluIGJpbmFyeSBmb3JtIG11c3QgcmVwcm9kdWNlIHRoZS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