Show
Ignore:
Timestamp:
04/02/07 12:35:17 (14 years ago)
Author:
pieterpalmers
Message:

* name change from FreeBoB to FFADO
* replaced tabs by 4 spaces
* got rid of end-of-line spaces
* made all license and copyrights conform

library becomes LGPL, apps become GPL
explicitly state LGPL v2.1 and GPL v2 (don't like v3 draft)

copyrights are 2005-2007 Daniel & Pieter
except for the MotU stuff (C) Jonathan, Pieter

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libieee1394/ARMHandler.h

    r414 r445  
    1 /* $Id$ */ 
     1/* 
     2 * Copyright (C) 2005-2007 by Pieter Palmers 
     3 * Copyright (C) 2005-2007 by Daniel Wagner 
     4 * 
     5 * This file is part of FFADO 
     6 * FFADO = Free Firewire (pro-)audio drivers for linux 
     7 * 
     8 * FFADO is based upon FreeBoB 
     9 * 
     10 * This library is free software; you can redistribute it and/or 
     11 * modify it under the terms of the GNU Lesser General Public 
     12 * License version 2.1, as published by the Free Software Foundation; 
     13 * 
     14 * This library is distributed in the hope that it will be useful, 
     15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
     17 * Lesser General Public License for more details. 
     18 * 
     19 * You should have received a copy of the GNU Lesser General Public 
     20 * License along with this library; if not, write to the Free Software 
     21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
     22 * MA 02110-1301 USA 
     23 */ 
    224 
    3 /* 
    4  *   FreeBob Streaming API 
    5  *   FreeBob = Firewire (pro-)audio for linux 
    6  * 
    7  *   http://freebob.sf.net 
    8  * 
    9  *   Copyright (C) 2005,2006 Pieter Palmers <pieterpalmers@users.sourceforge.net> 
    10  * 
    11  *   This program is free software {} you can redistribute it and/or modify 
    12  *   it under the terms of the GNU General Public License as published by 
    13  *   the Free Software Foundation {} either version 2 of the License, or 
    14  *   (at your option) any later version. 
    15  * 
    16  *   This program is distributed in the hope that it will be useful, 
    17  *   but WITHOUT ANY WARRANTY {} without even the implied warranty of 
    18  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    19  *   GNU General Public License for more details. 
    20  * 
    21  *   You should have received a copy of the GNU General Public License 
    22  *   along with this program {} if not, write to the Free Software 
    23  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
    24  * 
    25  *  
    26  * 
    27  */ 
    28 #ifndef __FREEBOB_ARMHANDLER__ 
    29 #define __FREEBOB_ARMHANDLER__ 
     25#ifndef __FFADO_ARMHANDLER__ 
     26#define __FFADO_ARMHANDLER__ 
    3027 
    3128#include "../debugmodule/debugmodule.h" 
     
    3734/** 
    3835 * @brief Class to handle AddressRangeMappings 
    39  *  
    40  * This class is intended to help with implementing  
     36 * 
     37 * This class is intended to help with implementing 
    4138 * address range mapping, i.e. implementing handlers 
    4239 * that react to reads/writes of certain addresses 
    4340 * in 1394 memory space 
    44  *  
     41 * 
    4542 * see the _arm_ functions in raw1394.h for more insight 
    46  *  
     43 * 
    4744 */ 
    48   
     45 
    4946class ARMHandler { 
    5047friend class Ieee1394Service; 
     
    5754               unsigned int client_transactions 
    5855              ); 
    59      
     56 
    6057    virtual ~ARMHandler(); 
    6158 
     
    6562 
    6663    struct raw1394_arm_response *getResponse() {return &m_response;}; 
    67      
     64 
    6865    nodeaddr_t getStart() {return m_start;}; 
    6966    nodeaddr_t getLength() {return m_length;}; 
     
    7168    unsigned int getNotificationOptions() {return m_notification_options;}; 
    7269    unsigned int getClientTransactions() {return m_client_transactions;}; 
    73      
     70 
    7471    byte_t *getBuffer() {return m_buffer;}; 
    75      
     72 
    7673private: 
    7774    nodeaddr_t m_start; 
     
    8279 
    8380    byte_t *m_buffer; 
    84      
     81 
    8582    struct raw1394_arm_response m_response; 
    86      
     83 
    8784    void printBufferBytes( unsigned int level, size_t length, byte_t* buffer ) const; 
    8885    void printRequest(struct raw1394_arm_request *arm_req); 
    89      
     86 
    9087protected: 
    9188 
    92      
     89 
    9390    DECLARE_DEBUG_MODULE; 
    9491 
    9592}; 
    9693 
    97 #endif /* __FREEBOB_ARMHANDLER__ */ 
     94#endif /* __FFADO_ARMHANDLER__ */ 
    9895 
    9996