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

#include <stdint.h>
#include <sys/socket.h>
#include <linux/ethtool.h>
#include <linux/wireless.h>

#ifndef SPEED_UNKNOWN
#define SPEED_UNKNOWN           -1
#endif

#include "built_in.h"

extern int wireless_sigqual(const char *ifname, struct iw_statistics *stats);
extern int wireless_rangemax_sigqual(const char *ifname);
extern uint32_t wireless_bitrate(const char *ifname);
extern uint32_t ethtool_bitrate(const char *ifname);
extern int ethtool_drvinf(const char *ifname, struct ethtool_drvinfo *drvinf);
extern int ethtool_link(const char *ifname);

#endif /* LINK_H */
/select>
authorStephen Boyd <sboyd@codeaurora.org>2016-09-08 12:54:24 -0700
committerStephen Boyd <sboyd@codeaurora.org>2016-09-08 12:54:24 -0700
commite4abe2b9ab3ac79537d99dfceff7302739a586bc (patch)
treeed6034e05fff8f19c24b4fc4828bb8d87e0d5235 /Documentation
parentdc7066c54107255f5f9a11bf3f82417c9b1aef51 (diff)
parent6654674cb7b5953ac04fc9d7f5f511676ae97e29 (diff)
Merge tag 'sunxi-clk-fixes-for-4.8' of https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux into clk-fixes
Clock Fixes for the Allwinner SoCs, 4.8 Edition The usual bunch of fixes to the our clock drivers, mostly targetted to the brand new sunxi-ng drivers. * tag 'sunxi-clk-fixes-for-4.8' of https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux: clk: sunxi-ng: Fix wrong reset register offsets clk: sunxi-ng: nk: Make ccu_nk_find_best static clk: sunxi-ng: Fix inverted test condition in ccu_helper_wait_for_lock clk: sunxi: Fix return value check in sun8i_a23_mbus_setup() clk: sunxi: pll2: Fix return value check in sun4i_pll2_setup()
Diffstat (limited to 'Documentation')