Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
address.c File Reference
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/random.h>
#include <linux/etherdevice.h>
#include "uwb-internal.h"

Go to the source code of this file.

Data Structures

struct  uwb_rc_cmd_dev_addr_mgmt
 

Functions

struct uwb_rc_cmd_dev_addr_mgmt __attribute__ ((packed))
 
int uwb_rc_mac_addr_get (struct uwb_rc *rc, struct uwb_mac_addr *addr)
 
 EXPORT_SYMBOL_GPL (uwb_rc_mac_addr_get)
 
int uwb_rc_dev_addr_get (struct uwb_rc *rc, struct uwb_dev_addr *addr)
 
 EXPORT_SYMBOL_GPL (uwb_rc_dev_addr_get)
 
int uwb_rc_mac_addr_set (struct uwb_rc *rc, const struct uwb_mac_addr *addr)
 
int uwb_rc_dev_addr_set (struct uwb_rc *rc, const struct uwb_dev_addr *addr)
 
int __uwb_mac_addr_assigned_check (struct device *dev, void *_addr)
 
int __uwb_dev_addr_assigned_check (struct device *dev, void *_addr)
 
int uwb_rc_dev_addr_assign (struct uwb_rc *rc)
 
int uwbd_evt_handle_rc_dev_addr_conflict (struct uwb_event *evt)
 
 DEVICE_ATTR (mac_address, S_IRUGO|S_IWUSR, uwb_rc_mac_addr_show, uwb_rc_mac_addr_store)
 
size_t __uwb_addr_print (char *buf, size_t buf_size, const unsigned char *addr, int type)
 
 EXPORT_SYMBOL_GPL (__uwb_addr_print)
 

Variables

struct uwb_rccb rccb
 
u8 bmOperationType
 
u8 baAddr [6]
 

Function Documentation

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

size_t __uwb_addr_print ( char buf,
size_t  buf_size,
const unsigned char addr,
int  type 
)

Print to ,

Returns
bytes written

Definition at line 361 of file address.c.

int __uwb_dev_addr_assigned_check ( struct device dev,
void _addr 
)

Definition at line 254 of file address.c.

int __uwb_mac_addr_assigned_check ( struct device dev,
void _addr 
)

Definition at line 243 of file address.c.

DEVICE_ATTR ( mac_address  ,
S_IRUGO S_IWUSR,
uwb_rc_mac_addr_show  ,
uwb_rc_mac_addr_store   
)
EXPORT_SYMBOL_GPL ( uwb_rc_mac_addr_get  )
EXPORT_SYMBOL_GPL ( uwb_rc_dev_addr_get  )
EXPORT_SYMBOL_GPL ( __uwb_addr_print  )
int uwb_rc_dev_addr_assign ( struct uwb_rc rc)

uwb_dev_addr_assign - assigned a generated DevAddr to a radio controller : the (local) radio controller device requiring a new DevAddr

A new DevAddr is required when:

  • first setting up a radio controller
  • if the hardware reports a DevAddr conflict

The DevAddr is randomly generated in the generated DevAddr range [0x100, 0xfeff]. The number of devices in a beacon group is limited by mMaxBPLength (96) so this address space will never be exhausted.

[ECMA-368] 17.1.1, 17.16.

Definition at line 277 of file address.c.

int uwb_rc_dev_addr_get ( struct uwb_rc rc,
struct uwb_dev_addr addr 
)

Get 's device address to

Definition at line 211 of file address.c.

int uwb_rc_dev_addr_set ( struct uwb_rc rc,
const struct uwb_dev_addr addr 
)

Set 's address to

Definition at line 231 of file address.c.

int uwb_rc_mac_addr_get ( struct uwb_rc rc,
struct uwb_mac_addr addr 
)

Get 's MAC address to

Definition at line 203 of file address.c.

int uwb_rc_mac_addr_set ( struct uwb_rc rc,
const struct uwb_mac_addr addr 
)

Set 's address to

Definition at line 219 of file address.c.

int uwbd_evt_handle_rc_dev_addr_conflict ( struct uwb_event evt)

uwbd_evt_handle_rc_dev_addr_conflict - handle a DEV_ADDR_CONFLICT event : the DEV_ADDR_CONFLICT notification from the radio controller

A new (non-conflicting) DevAddr is assigned to the radio controller.

[ECMA-368] 17.1.1.1.

Definition at line 297 of file address.c.

Variable Documentation

u8 baAddr[6]

Definition at line 44 of file address.c.

u8 bmOperationType

Definition at line 43 of file address.c.

Definition at line 42 of file address.c.