Skip to content

Commit

Permalink
Add a new method to set up the individual port in question.
Browse files Browse the repository at this point in the history
The AR8327 requires some different setup code.
  • Loading branch information
Adrian Chadd authored and Adrian Chadd committed Feb 19, 2014
1 parent df89289 commit e3ba3a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/dev/etherswitch/arswitch/arswitchvar.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ struct arswitch_softc {
uint32_t vlan_mode;

struct {
/* Global setup */
int (* arswitch_hw_setup) (struct arswitch_softc *);
int (* arswitch_hw_global_setup) (struct arswitch_softc *);

/* Port functions */
void (* arswitch_port_init) (struct arswitch_softc *, int);
} hal;
};

Expand Down

0 comments on commit e3ba3a8

Please sign in to comment.