#ifndef _POWERPC_PMI_H #define _POWERPC_PMI_H /* * Definitions for talking with PMI device on PowerPC * * PMI (Platform Management Interrupt) is a way to communicate * with the BMC (Baseboard Management Controller) via interrupts. * Unlike IPMI it is bidirectional and has a low latency. * * (C) Copyright IBM Deutschland Entwicklung GmbH 2005 * * Author: Christian Krafft * * This program 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, 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef __KERNEL__ #define PMI_TYPE_FREQ_CHANGE 0x01 #define PMI_TYPE_POWER_BUTTON 0x02 #define PMI_READ_TYPE 0 #define PMI_READ_DATA0 1 #define PMI_READ_DATA1 2 #define PMI_READ_DATA2 3 #define PMI_WRITE_TYPE 4 #define PMI_WRITE_DATA0 5 #define PMI_WRITE_DATA1 6 #define PMI_WRITE_DATA2 7 #define PMI_ACK 0x80 #define PMI_TIMEOUT 100 typedef struct { u8 type; u8 data0; u8 data1; u8 data2; } pmi_message_t; struct pmi_handler { struct list_head node; u8 type; void (*handle_pmi_message) (pmi_message_t); }; int pmi_register_handler(struct pmi_handler *); void pmi_unregister_handler(struct pmi_handler *); int pmi_send_message(pmi_message_t); #endif /* __KERNEL__ */ #endif /* _POWERPC_PMI_H */ e/arch/mips/mm/cex-sb1.S?id=5db4992d8f040b8d8db0b86d42806e0c417f7ccf'>treecommitdiff
path: root/arch/mips/mm/cex-sb1.S
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-10-20 15:44:19 +0200
committerTobias Klauser <tklauser@distanz.ch>2017-02-15 10:34:18 +0100
commit5db4992d8f040b8d8db0b86d42806e0c417f7ccf (patch)
tree5b06e952af482d45f3ade64e77824662e34b7fa2 /arch/mips/mm/cex-sb1.S
parent370ebb0ef6255132373ed35d13e7b1d8d2eb7003 (diff)
usbnet: pegasus: Use net_device_stats from struct net_devicends-private-remove
Instead of using a private copy of struct net_device_stats in struct pegasus, use stats from struct net_device. Also remove the now unnecessary .ndo_get_stats function. Cc: Petko Manolov <petkan@nucleusys.com> Cc: linux-usb@vger.kernel.org Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'arch/mips/mm/cex-sb1.S')
> (limited to 'arch/powerpc/boot/ppcboot.h')