Re: [RFC PATCH 1/2] move flow control definitions to mii.h
From: Ben Hutchings <hidden>
Date: 2008-12-23 17:47:33
On Sun, 2008-12-14 at 12:38 +0000, Steve Glendinning wrote: [...]
quoted hunk ↗ jump to hunk
diff --git a/include/linux/mii.h b/include/linux/mii.h index 151b7e0..4a376e0 100644 --- a/include/linux/mii.h +++ b/include/linux/mii.h@@ -135,6 +135,10 @@ #define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */ #define LPA_1000HALF 0x0400 /* Link partner 1000BASE-T half duplex */ +/* Flow control flags */ +#define FLOW_CTRL_TX 0x01 +#define FLOW_CTRL_RX 0x02 + /* This structure is used in all SIOCxMIIxxx ioctl calls */ struct mii_ioctl_data { __u16 phy_id;
How about a FLOW_CTRL_AUTO flag to represent whether auto-negotiation of FC is enabled (or inversely FLOW_CTRL_FORCE)? Ben. -- Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.