Xenomai  3.0.5
udd.h File Reference

Copyright (C) 2014 Philippe Gerum rpm@x.nosp@m.enom.nosp@m.ai.or.nosp@m.g More...

Include dependency graph for udd.h:

Go to the source code of this file.

Data Structures

struct  udd_memregion
 
struct  udd_device
 
struct  udd_device::udd_reserved
 Reserved to the UDD core. More...
 

Macros

#define UDD_IRQ_NONE   0
 No IRQ managed. More...
 
#define UDD_IRQ_CUSTOM   (-1)
 IRQ directly managed from the mini-driver on top of the UDD core. More...
 
Memory types for mapping

Types of memory for mapping

The UDD core implements a default ->mmap() handler which first attempts to hand over the request to the corresponding handler defined by the mini-driver. If not present, the UDD core establishes the mapping automatically, depending on the memory type defined for the region.

#define UDD_MEM_NONE   0
 No memory region. More...
 
#define UDD_MEM_PHYS   1
 Physical I/O memory region. More...
 
#define UDD_MEM_LOGICAL   2
 Kernel logical memory region (e.g. More...
 
#define UDD_MEM_VIRTUAL   3
 Virtual memory region with no direct physical mapping (e.g. More...
 

Functions

int udd_register_device (struct udd_device *udd)
 Register a UDD device. More...
 
int udd_unregister_device (struct udd_device *udd)
 Unregister a UDD device. More...
 
struct udd_deviceudd_get_device (struct rtdm_fd *fd)
 RTDM file descriptor to target UDD device. More...
 
void udd_notify_event (struct udd_device *udd)
 Notify an IRQ event for an unmanaged interrupt. More...
 
void udd_enable_irq (struct udd_device *udd, rtdm_event_t *done)
 Enable the device IRQ line. More...
 
void udd_disable_irq (struct udd_device *udd, rtdm_event_t *done)
 Disable the device IRQ line. More...
 

Detailed Description

Copyright (C) 2014 Philippe Gerum rpm@x.nosp@m.enom.nosp@m.ai.or.nosp@m.g

Xenomai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.