diff options
author | David S. Miller <davem@davemloft.net> | 2008-08-07 02:10:27 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-07 02:10:27 -0700 |
commit | 32bb93b02da8c75031e601ff1f9a25f99febbe5f (patch) | |
tree | 429d2b978f517d366de572fa5058d513ed7b51a6 /drivers/net/wan/lmc/lmc_proto.h | |
parent | 6edafaaf6f5e70ef1e620ff01bd6bacebe1e0718 (diff) | |
parent | 3859069bc3358772b08bd91efe9edec39a746ea8 (diff) |
Merge branch 'upstream-davem' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'drivers/net/wan/lmc/lmc_proto.h')
-rw-r--r-- | drivers/net/wan/lmc/lmc_proto.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wan/lmc/lmc_proto.h b/drivers/net/wan/lmc/lmc_proto.h index ccaa69e8b3c..662148c5464 100644 --- a/drivers/net/wan/lmc/lmc_proto.h +++ b/drivers/net/wan/lmc/lmc_proto.h @@ -1,16 +1,18 @@ #ifndef _LMC_PROTO_H_ #define _LMC_PROTO_H_ -void lmc_proto_init(lmc_softc_t *sc); +#include <linux/hdlc.h> + void lmc_proto_attach(lmc_softc_t *sc); -void lmc_proto_detach(lmc_softc_t *sc); -void lmc_proto_reopen(lmc_softc_t *sc); int lmc_proto_ioctl(lmc_softc_t *sc, struct ifreq *ifr, int cmd); -void lmc_proto_open(lmc_softc_t *sc); +int lmc_proto_open(lmc_softc_t *sc); void lmc_proto_close(lmc_softc_t *sc); __be16 lmc_proto_type(lmc_softc_t *sc, struct sk_buff *skb); void lmc_proto_netif(lmc_softc_t *sc, struct sk_buff *skb); -int lmc_skb_rawpackets(char *buf, char **start, off_t offset, int len, int unused); -#endif +static inline lmc_softc_t* dev_to_sc(struct net_device *dev) +{ + return (lmc_softc_t *)dev_to_hdlc(dev)->priv; +} +#endif |