/* * Register definitions for the Power Manager (PM) */ #ifndef __ARCH_AVR32_MACH_AT32AP_PM_H__ #define __ARCH_AVR32_MACH_AT32AP_PM_H__ /* PM register offsets */ #define PM_MCCTRL 0x0000 #define PM_CKSEL 0x0004 #define PM_CPU_MASK 0x0008 #define PM_HSB_MASK 0x000c #define PM_PBA_MASK 0x0010 #define PM_PBB_MASK 0x0014 #define PM_PLL0 0x0020 #define PM_PLL1 0x0024 #define PM_IER 0x0040 #define PM_IDR 0x0044 #define PM_IMR 0x0048 #define PM_ISR 0x004c #define PM_ICR 0x0050 #define PM_GCCTRL(x) (0x0060 + 4 * (x)) #define PM_RCAUSE 0x00c0 /* Bitfields in CKSEL */ #define PM_CPUSEL_OFFSET 0 #define PM_CPUSEL_SIZE 3 #define PM_CPUDIV_OFFSET 7 #define PM_CPUDIV_SIZE 1 #define PM_HSBSEL_OFFSET 8 #define PM_HSBSEL_SIZE 3 #define PM_HSBDIV_OFFSET 15 #define PM_HSBDIV_SIZE 1 #define PM_PBASEL_OFFSET 16 #define PM_PBASEL_SIZE 3 #define PM_PBADIV_OFFSET 23 #define PM_PBADIV_SIZE 1 #define PM_PBBSEL_OFFSET 24 #define PM_PBBSEL_SIZE 3 #define PM_PBBDIV_OFFSET 31 #define PM_PBBDIV_SIZE 1 /* Bitfields in PLL0 */ #define PM_PLLEN_OFFSET 0 #define PM_PLLEN_SIZE 1 #define PM_PLLOSC_OFFSET 1 #define PM_PLLOSC_SIZE 1 #define PM_PLLOPT_OFFSET 2 #define PM_PLLOPT_SIZE 3 #define PM_PLLDIV_OFFSET 8 #define PM_PLLDIV_SIZE 8 #define PM_PLLMUL_OFFSET 16 #define PM_PLLMUL_SIZE 8 #define PM_PLLCOUNT_OFFSET 24 #define PM_PLLCOUNT_SIZE 6 #define PM_PLLTEST_OFFSET 31 #define PM_PLLTEST_SIZE 1 /* Bitfields in ICR */ #define PM_LOCK0_OFFSET 0 #define PM_LOCK0_SIZE 1 #define PM_LOCK1_OFFSET 1 #define PM_LOCK1_SIZE 1 #define PM_WAKE_OFFSET 2 #define PM_WAKE_SIZE 1 #define PM_CKRDY_OFFSET 5 #define PM_CKRDY_SIZE 1 #define PM_MSKRDY_OFFSET 6 #define PM_MSKRDY_SIZE 1 /* Bitfields in GCCTRL0 */ #define PM_OSCSEL_OFFSET 0 #define PM_OSCSEL_SIZE 1 #define PM_PLLSEL_OFFSET 1 #define PM_PLLSEL_SIZE 1 #define PM_CEN_OFFSET 2 #define PM_CEN_SIZE 1 #define PM_DIVEN_OFFSET 4 #define PM_DIVEN_SIZE 1 #define PM_DIV_OFFSET 8 #define PM_DIV_SIZE 8 /* Bitfields in RCAUSE */ #define PM_POR_OFFSET 0 #define PM_POR_SIZE 1 #define PM_EXT_OFFSET 2 #define PM_EXT_SIZE 1 #define PM_WDT_OFFSET 3 #define PM_WDT_SIZE 1 #define PM_NTAE_OFFSET 4 #define PM_NTAE_SIZE 1 /* Bit manipulation macros */ #define PM_BIT(name) \ (1 << PM_##name##_OFFSET) #define PM_BF(name,value) \ (((value) & ((1 << PM_##name##_SIZE) - 1)) \ << PM_##name##_OFFSET) #define PM_BFEXT(name,value) \ (((value) >> PM_##name##_OFFSET) \ & ((1 << PM_##name##_SIZE) - 1)) #define PM_BFINS(name,value,old)\ (((old) & ~(((1 << PM_##name##_SIZE) - 1) \ << PM_##name##_OFFSET)) \ | PM_BF(name,value)) /* Register access macros */ #define pm_readl(reg) \ __raw_readl((void __iomem __force *)PM_BASE + PM_##reg) #define pm_writel(reg,value) \ __raw_writel((value), (void __iomem __force *)PM_BASE + PM_##reg) #endif /* __ARCH_AVR32_MACH_AT32AP_PM_H__ */ private-remove'>uapi</a>/<a href='/cgit.cgi/linux/net-next.git/commit/arch/alpha/include/uapi/asm?h=nds-private-remove'>asm</a>/<a href='/cgit.cgi/linux/net-next.git/commit/arch/alpha/include/uapi/asm/fpu.h?h=nds-private-remove'>fpu.h</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='nds-private-remove'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'> <tr><th>author</th><td>Tobias Klauser <tklauser@distanz.ch></td><td class='right'>2016-10-20 15:44:19 +0200</td></tr> <tr><th>committer</th><td>Tobias Klauser <tklauser@distanz.ch></td><td class='right'>2017-02-15 10:34:18 +0100</td></tr> <tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/arch/alpha/include/uapi/asm/fpu.h?h=nds-private-remove&id=5db4992d8f040b8d8db0b86d42806e0c417f7ccf'>5db4992d8f040b8d8db0b86d42806e0c417f7ccf</a> (<a href='/cgit.cgi/linux/net-next.git/patch/arch/alpha/include/uapi/asm/fpu.h?id=5db4992d8f040b8d8db0b86d42806e0c417f7ccf'>patch</a>)</td></tr> <tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?h=nds-private-remove'>5b06e952af482d45f3ade64e77824662e34b7fa2</a> /<a href='/cgit.cgi/linux/net-next.git/tree/arch/alpha/include/uapi/asm/fpu.h?h=nds-private-remove'>arch/alpha/include/uapi/asm/fpu.h</a></td></tr> <tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/arch/alpha/include/uapi/asm/fpu.h?h=nds-private-remove&id=370ebb0ef6255132373ed35d13e7b1d8d2eb7003'>370ebb0ef6255132373ed35d13e7b1d8d2eb7003</a> (<a href='/cgit.cgi/linux/net-next.git/diff/arch/alpha/include/uapi/asm/fpu.h?h=nds-private-remove&id2=370ebb0ef6255132373ed35d13e7b1d8d2eb7003'>diff</a>)</td></tr></table> <div class='commit-subject'>usbnet: pegasus: Use net_device_stats from struct net_device<span class='decoration'><a class='branch-deco' href='/cgit.cgi/linux/net-next.git/log/arch/alpha/include/uapi/asm/fpu.h?h=nds-private-remove'>nds-private-remove</a></span></div><div class='commit-msg'>Instead of using a private copy of struct net_device_stats in struct pegasus, use stats from struct net_device. Also remove the now unnecessary .ndo_get_stats function. Cc: Petko Manolov <petkan@nucleusys.com> Cc: linux-usb@vger.kernel.org Signed-off-by: Tobias Klauser <tklauser@distanz.ch> </div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?h=nds-private-remove'>Diffstat</a> (limited to 'arch/alpha/include/uapi/asm/fpu.h')</div><table summary='diffstat' class='diffstat'>