Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
dcfc7633
Commit
dcfc7633
authored
10 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Add some helper macros to make the code a little more compac
parent
716aec39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/net/if.h
+6
-0
6 additions, 0 deletions
include/net/if.h
with
6 additions
and
0 deletions
include/net/if.h
+
6
−
0
View file @
dcfc7633
...
...
@@ -114,6 +114,9 @@ struct lifreq
#define lifr_mtu lifr_ifru.lifru_mtu
/* MTU */
#define lifr_count lifr_ifru.lifru_count
/* Number of devices */
#define lifr_flags lifr_ifru.lifru_flags
/* interface flags */
#define lifr_mii_notify_pid lifr_ifru.llfru_mii_notify.pid
/* PID to be notified */
#define lifr_mii_notify_signo lifr_ifru.llfru_mii_notify.signo
/* Signal to notify with */
#define lifr_mii_notify_arg lifr_ifru.llfru_mii_notify.arg
/* sigval argument */
#define lifr_mii_phy_id lifr_ifru.lifru_mii_data.phy_id
/* PHY device address */
#define lifr_mii_reg_num lifr_ifru.lifru_mii_data.reg_num
/* PHY register address */
#define lifr_mii_val_in lifr_ifru.lifru_mii_data.val_in
/* PHY input data */
...
...
@@ -151,6 +154,9 @@ struct ifreq
#define ifr_mtu ifr_ifru.ifru_mtu
/* MTU */
#define ifr_count ifr_ifru.ifru_count
/* Number of devices */
#define ifr_flags ifr_ifru.ifru_flags
/* interface flags */
#define ifr_mii_notify_pid ifr_ifru.ifru_mii_notify.pid
/* PID to be notified */
#define ifr_mii_notify_signo ifr_ifru.ifru_mii_notify.signo
/* Signal to notify with */
#define ifr_mii_notify_arg ifr_ifru.ifru_mii_notify.arg
/* sigval argument */
#define ifr_mii_phy_id ifr_ifru.ifru_mii_data.phy_id
/* PHY device address */
#define ifr_mii_reg_num ifr_ifru.ifru_mii_data.reg_num
/* PHY register address */
#define ifr_mii_val_in ifr_ifru.ifru_mii_data.val_in
/* PHY input data */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment