Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2003 18:28:09 +1000
From:      "Anthony Carmody" <anthony@carmoda.com>
To:        <freebsd-questions@freebsd.org>
Subject:   RE: patching a device driver
Message-ID:  <007901c39d2d$6b940de0$7000a8c0@carmoda3>
In-Reply-To: <000f01c39d17$f5dd8550$7000a8c0@carmoda3>

next in thread | previous in thread | raw e-mail | index | archive | help
ok,

i have answered my own question. a few additions to my if_fxp.c file,
and a kernel recompile and bingo. make sure you get the order right.


static u_char fxp_cb_config_template[] = {
	0x0, 0x0,		/* cb_status */
	0x0, 0x0,		/* cb_command */
	0x0, 0x0, 0x0, 0x0,	/* link_addr */
	0x0,	/*  0 */
	0x0,	/*  1 */
	0x0,	/*  2 */
	0x0,	/*  3 */
	0x0,	/*  4 */
	0x0,	/*  5 */
	0x32,	/*  6 */
	0x0,	/*  7 */
	0x0,	/*  8 */
	0x0,	/*  9 */
	0x6,	/* 10 */
	0x0,	/* 11 */
	0x0,	/* 12 */
	0x0,	/* 13 */
	0xf2,	/* 14 */
	0x48,	/* 15 */
	0x0,	/* 16 */
	0x02,	/* 17 */  <= added by me
	0x40,	/* 18 */
	0xf0,	/* 19 */
	0x0,	/* 20 */
	0x3f,	/* 21 */
	0x5	/* 22 */
};

struct fxp_ident {
	u_int16_t	devid;
	char 		*name;
};

/*
 * Claim various Intel PCI device identifiers for this driver.  The
 * sub-vendor and sub-device field are extensively used to identify
 * particular variants, but we don't currently differentiate between
 * them.
 */
static struct fxp_ident fxp_ident_table[] = {
    { 0x1029,		"Intel 82559 PCI/CardBus Pro/100" },
    { 0x1030,		"Intel 82559 Pro/100 Ethernet" },
    { 0x1031,		"Intel 82801CAM (ICH3) Pro/100 VE Ethernet" },
    { 0x1032,		"Intel 82801CAM (ICH3) Pro/100 VE Ethernet" },
    { 0x1033,		"Intel 82801CAM (ICH3) Pro/100 VM Ethernet" },
    { 0x1034,		"Intel 82801CAM (ICH3) Pro/100 VM Ethernet" },
    { 0x1035,		"Intel 82801CAM (ICH3) Pro/100 Ethernet" },
    { 0x1036,		"Intel 82801CAM (ICH3) Pro/100 Ethernet" },
    { 0x1037,		"Intel 82801CAM (ICH3) Pro/100 Ethernet" },
    { 0x1038,		"Intel 82801CAM (ICH3) Pro/100 VM Ethernet" },
    { 0x1039,		"Intel 82801DB (ICH4) Pro/100 VE Ethernet" },
    { 0x103A,		"Intel 82801DB (ICH4) Pro/100 Ethernet" },
    { 0x103B,		"Intel 82801DB (ICH4) Pro/100 VM Ethernet" },
    { 0x103C,		"Intel 82801DB (ICH4) Pro/100 Ethernet" },
    { 0x103D,		"Intel 82801DB (ICH4) Pro/100 VE Ethernet" },
    { 0x103E,		"Intel 82801DB (ICH4) Pro/100 VM Ethernet" },
    { 0x1050,		"Intel 82562EZ PHY 10/100 Fast Ethernet" },  <= added by
me
    { 0x1059,		"Intel 82551QM Pro/100 M Mobile Connection" },
    { 0x1209,		"Intel 82559ER Embedded 10/100 Ethernet" },
    { 0x1229,		"Intel 82557/8/9 EtherExpress Pro/100(B) Ethernet" },
    { 0x2449,		"Intel 82801BA/CAM (ICH2/3) Pro/100 Ethernet" },
    { 0,		NULL },
};


> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org
> [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of carmoda
> Sent: Tuesday, 28 October 2003 3:55 PM
> To: freebsd-questions@freebsd.org
> Subject: patching a device driver
>
>
> Hi,
>
> I have found some instructions on how to patch a device
> driver [so as to get
> an onboard network card to get picked up]. I was wondering if
> anyone had any
> instructions on how to go about adding the patch, i have never done it
> before...
>
> freebsd-questions@freebsd.org.
>
> http://lists.freebsd.org/pipermail/freebsd-bugs/2003-June/001240.html
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007901c39d2d$6b940de0$7000a8c0>