summaryrefslogtreecommitdiff
path: root/vlan.h
blob: b58d1a26f20e224d0a6a2960f140118ccf643bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef VLAN_H
#define VLAN_H

#include <stdbool.h>
#include <inttypes.h>

static inline uint16_t vlan_tci2prio(uint16_t tci)
{
	return (tci & 0xe000) >> 13;
}

static inline uint16_t vlan_tci2cfi(uint16_t tci)
{
	return (tci & 0x1000) >> 12;
}

static inline uint16_t vlan_tci2vid(uint16_t tci)
{
	return tci & 0x0fff;
}

#endif
a href='/cgit.cgi/linux/net-next.git/commit/?id=7a35c0ee170b71a0cd3e278e560c4fd0dd84f3ca'>7a35c0ee170b71a0cd3e278e560c4fd0dd84f3ca (patch) treeb0b50ba3fb5be470aa4e2f90005e89a75bd02a33 parent68cd004e54716b94e2c3c6abaca883861f4417b1 (diff)
dt-bindings: video: add PCLK clock entry to exynos5433-decon
DECON IP requires this clock to access configuration registers. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat