blob: 7bf095de903a86c8bbb786ca7e050d6c4ca84611 [file] [log] [blame]
/******************************************************************************
*
* Copyright (C) 2012 Broadcom Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************/
#ifndef _BCM2079X_H
#define _BCM2079X_H
#define BCMNFC_MAGIC 0xFA
/*
* BCMNFC power control via ioctl
* BCMNFC_POWER_CTL(0): power off
* BCMNFC_POWER_CTL(1): power on
* BCMNFC_WAKE_CTL(0): wake off
* BCMNFC_WAKE_CTL(1): wake on
*/
#define BCMNFC_POWER_CTL _IO(BCMNFC_MAGIC, 0x01)
#define BCMNFC_CHANGE_ADDR _IO(BCMNFC_MAGIC, 0x02)
#define BCMNFC_READ_FULL_PACKET _IO(BCMNFC_MAGIC, 0x03)
#define BCMNFC_SET_WAKE_ACTIVE_STATE _IO(BCMNFC_MAGIC, 0x04)
#define BCMNFC_WAKE_CTL _IO(BCMNFC_MAGIC, 0x05)
#define BCMNFC_READ_MULTI_PACKETS _IO(BCMNFC_MAGIC, 0x06)
struct bcm2079x_platform_data {
unsigned int irq_gpio;
unsigned int en_gpio;
int wake_gpio;
};
#endif