/* * Linux ARCnet driver - COM20020 chipset support - function declarations * * Written 1997 by David Woodhouse. * Written 1994-1999 by Avery Pennarun. * Derived from skeleton.c by Donald Becker. * * Special thanks to Contemporary Controls, Inc. (www.ccontrols.com) * for sponsoring the further development of this driver. * * ********************** * * The original copyright of skeleton.c was as follows: * * skeleton.c Written 1993 by Donald Becker. * Copyright 1993 United States Government as represented by the * Director, National Security Agency. This software may only be used * and distributed according to the terms of the GNU General Public License as * modified by SRC, incorporated herein by reference. * * ********************** * * For more details, see drivers/net/arcnet.c * * ********************** */ #ifndef __COM20020_H #define __COM20020_H int com20020_check(struct net_device *dev); int com20020_found(struct net_device *dev, int shared); extern const struct net_device_ops com20020_netdev_ops; /* The number of low I/O ports used by the card. */ #define ARCNET_TOTAL_SIZE 8 /* various register addresses */ #ifdef CONFIG_SA1100_CT6001 #define BUS_ALIGN 2 /* 8 bit device on a 16 bit bus - needs padding */ #else #define BUS_ALIGN 1 #endif #define PLX_PCI_MAX_CARDS 2 struct com20020_pci_channel_map { u32 bar; u32 offset; u32 size; /* 0x00 - auto, e.g. length of entire bar */ }; struct com20020_pci_card_info { const char *name; int devcount; struct com20020_pci_channel_map chan_map_tbl[PLX_PCI_MAX_CARDS]; unsigned int flags; }; struct com20020_priv { struct com20020_pci_card_info *ci; struct list_head list_dev; }; struct com20020_dev { struct list_head list; struct net_device *dev; struct com20020_priv *pci_priv; int index; }; #define _INTMASK (ioaddr+BUS_ALIGN*0) /* writable */ #define _STATUS (ioaddr+BUS_ALIGN*0) /* readable */ #define _COMMAND (ioaddr+BUS_ALIGN*1) /* standard arcnet commands */ #define _DIAGSTAT (ioaddr+BUS_ALIGN*1) /* diagnostic status register */ #define _ADDR_HI (ioaddr+BUS_ALIGN*2) /* control registers for IO-mapped memory */ #define _ADDR_LO (ioaddr+BUS_ALIGN*3) #define _MEMDATA (ioaddr+BUS_ALIGN*4) /* data port for IO-mapped memory */ #define _SUBADR (ioaddr+BUS_ALIGN*5) /* the extended port _XREG refers to */ #define _CONFIG (ioaddr+BUS_ALIGN*6) /* configuration register */ #define _XREG (ioaddr+BUS_ALIGN*7) /* extra registers (indexed by _CONFIG or _SUBADR) */ /* in the ADDR_HI register */ #define RDDATAflag 0x80 /* next access is a read (not a write) */ /* in the DIAGSTAT register */ #define NEWNXTIDflag 0x02 /* ID to which token is passed has changed */ /* in the CONFIG register */ #define RESETcfg 0x80 /* put card in reset state */ #define TXENcfg 0x20 /* enable TX */ /* in SETUP register */ #define PROMISCset 0x10 /* enable RCV_ALL */ #define P1MODE 0x80 /* enable P1-MODE for Backplane */ #define SLOWARB 0x01 /* enable Slow Arbitration for >=5Mbps */ /* COM2002x */ #define SUB_TENTATIVE 0 /* tentative node ID */ #define SUB_NODE 1 /* node ID */ #define SUB_SETUP1 2 /* various options */ #define SUB_TEST 3 /* test/diag register */ /* COM20022 only */ #define SUB_SETUP2 4 /* sundry options */ #define SUB_BUSCTL 5 /* bus control options */ #define SUB_DMACOUNT 6 /* DMA count options */ #define SET_SUBADR(x) do { \ if ((x) < 4) \ { \ lp->config = (lp->config & ~0x03) | (x); \ SETCONF; \ } \ else \ { \ outb(x, _SUBADR); \ } \ } while (0) #undef ARCRESET #undef ASTATUS #undef ACOMMAND #undef AINTMASK #define ARCRESET { outb(lp->config | 0x80, _CONFIG); \ udelay(5); \ outb(lp->config , _CONFIG); \ } #define ARCRESET0 { outb(0x18 | 0x80, _CONFIG); \ udelay(5); \ outb(0x18 , _CONFIG); \ } #define ASTATUS() inb(_STATUS) #define ADIAGSTATUS() inb(_DIAGSTAT) #define ACOMMAND(cmd) outb((cmd),_COMMAND) #define AINTMASK(msk) outb((msk),_INTMASK) #define SETCONF outb(lp->config, _CONFIG) #endif /* __COM20020_H */ 9.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
path: root/net/openvswitch/flow_netlink.c
AgeCommit message (Expand)Author
2020-07-13net: openvswitch: kerneldoc fixesAndrew Lunn
2020-02-21Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netDavid S. Miller
2020-02-20openvswitch: Distribute switch variables for initializationKees Cook
2020-02-16openvswitch: add TTL decrement actionMatteo Croce
2019-12-24openvswitch: New MPLS actions for layer 2 tunnellingMartin Varghese
2019-11-05Change in Openvswitch to support MPLS label depth of 3 in ingress directionMartin Varghese
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 269Thomas Gleixner
2019-04-27netlink: make validation more configurable for future strictnessJohannes Berg
2019-04-27netlink: make nla_nest_start() add NLA_F_NESTED flagMichal Kubecek
2019-04-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller
2019-03-29openvswitch: Make metadata_dst tunnel work in IP_TUNNEL_INFO_BRIDGE modewenxu
2019-03-28openvswitch: fix flow actions reallocationAndrea Righi
2019-03-27net: openvswitch: Add a new action check_pkt_lenNuman Siddique
2019-01-16openvswitch: Avoid OOB read when parsing flow nlattrsRoss Lagerwall
2018-11-08OVS: remove use of VLAN_TAG_PRESENTMichał Mirosław
2018-10-31openvswitch: Fix push/pop ethernet validationJaime Caamaño Ruiz
2018-07-08openvswitch: kernel datapath clone actionYifeng Sun
2018-06-29net: check tunnel option type in tunnel flagsPieter Jansen van Vuuren
2018-05-04openvswitch: Don't swap table in nlattr_set() after OVS_ATTR_NESTED is foundStefano Brivio
2018-01-25openvswitch: add erspan version I and II supportWilliam Tu
2018-01-18flow_netlink: Remove unneeded semicolonsChristopher Díaz Riveros