Home | History | Annotate | Download | only in include
      1 /******************************************************************************
      2  *
      3  *  Copyright (C) 2012 Broadcom Corporation
      4  *
      5  *  Licensed under the Apache License, Version 2.0 (the "License");
      6  *  you may not use this file except in compliance with the License.
      7  *  You may obtain a copy of the License at:
      8  *
      9  *  http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  *  Unless required by applicable law or agreed to in writing, software
     12  *  distributed under the License is distributed on an "AS IS" BASIS,
     13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  *  See the License for the specific language governing permissions and
     15  *  limitations under the License.
     16  *
     17  ******************************************************************************/
     18 
     19 #ifndef _BCM2079X_H
     20 #define _BCM2079X_H
     21 
     22 #define BCMNFC_MAGIC	0xFA
     23 
     24 /*
     25  * BCMNFC power control via ioctl
     26  * BCMNFC_POWER_CTL(0): power off
     27  * BCMNFC_POWER_CTL(1): power on
     28  * BCMNFC_WAKE_CTL(0): wake off
     29  * BCMNFC_WAKE_CTL(1): wake on
     30  */
     31 #define BCMNFC_POWER_CTL		_IO(BCMNFC_MAGIC, 0x01)
     32 #define BCMNFC_CHANGE_ADDR		_IO(BCMNFC_MAGIC, 0x02)
     33 #define BCMNFC_READ_FULL_PACKET		_IO(BCMNFC_MAGIC, 0x03)
     34 #define BCMNFC_SET_WAKE_ACTIVE_STATE	_IO(BCMNFC_MAGIC, 0x04)
     35 #define BCMNFC_WAKE_CTL			_IO(BCMNFC_MAGIC, 0x05)
     36 #define BCMNFC_READ_MULTI_PACKETS	_IO(BCMNFC_MAGIC, 0x06)
     37 
     38 struct bcm2079x_platform_data {
     39 	unsigned int irq_gpio;
     40 	unsigned int en_gpio;
     41 	int wake_gpio;
     42 };
     43 
     44 #endif
     45