--- zzzz-none-000/linux-4.1.52/include/uapi/linux/atmdev.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/uapi/linux/atmdev.h 2022-03-02 11:37:13.000000000 +0000 @@ -6,12 +6,16 @@ #ifndef _UAPILINUX_ATMDEV_H #define _UAPILINUX_ATMDEV_H +#if defined(CONFIG_BCM_KF_DOUBLE_INCLUSION) || !defined(CONFIG_BCM_IN_KERNEL) +#ifndef LINUX_ATMDEV_H +#define LINUX_ATMDEV_H +#endif +#endif #include #include #include - #define ESI_LEN 6 #define ATM_OC3_PCR (155520000/270*260/8/53) @@ -107,6 +111,11 @@ #define ATM_DROPPARTY _IOW('a', ATMIOC_SPECIAL+5,int) /* drop party from p2mp call */ +#if defined(CONFIG_BCM_KF_ATM_BACKEND) || !defined(CONFIG_BCM_IN_KERNEL) +#define ATM_EXTBACKENDIF _IOW('a',ATMIOC_SPECIAL+6,atm_backend_t) +#define ATM_SETEXTFILT _IOW('a',ATMIOC_SPECIAL+7,atm_backend_t) +#endif + /* * These are backend handkers that can be set via the ATM_SETBACKEND call * above. In the future we may support dynamic loading of these - for now, @@ -116,6 +125,14 @@ #define ATM_BACKEND_PPP 1 /* PPPoATM - RFC2364 */ #define ATM_BACKEND_BR2684 2 /* Bridged RFC1483/2684 */ +#if defined(CONFIG_BCM_KF_ATM_BACKEND) || !defined(CONFIG_BCM_IN_KERNEL) +#define ATM_BACKEND_RT2684 3 /* Routed RFC1483/2684 */ +#define ATM_BACKEND_BR2684_BCM 4 /* Bridged RFC1483/2684 uses Broadcom ATMAPI*/ +#define ATM_BACKEND_PPP_BCM 5 /* PPPoA uses Broadcom bcmxtmrt driver */ +#define ATM_BACKEND_PPP_BCM_DISCONN 6 /* PPPoA LCP disconnect */ +#define ATM_BACKEND_PPP_BCM_CLOSE_DEV 7 /* PPPoA close device */ +#endif + /* for ATM_GETTYPE */ #define ATM_ITFTYP_LEN 8 /* maximum length of interface type name */