# HG changeset patch
# User Matt Mackall <mpm@selenic.com>
# Date 1249942085 18000
# Node ID cf0b9cd859b3f77e2ba092c6d3200a2775736205
# Parent  ee915ff91fca36aea1c05d4e054f5bf530a34c62
imported patch comcerto-fpp

diff -r ee915ff91fca -r cf0b9cd859b3 include/net/fpp_ops.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/net/fpp_ops.h	Mon Aug 10 17:08:05 2009 -0500
@@ -0,0 +1,51 @@
+/*
+ *
+ *  Copyright (C) 2007 Mindspeed Technologies, Inc.
+ *
+ * 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 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
+ */
+#ifndef __FPP_OPS_H__
+#define __FPP_OPS_H__
+
+/*Structure used by upper layer to communicate callback*/
+typedef struct fpp_ops {
+	int (*write)(unsigned short fcode, unsigned short len, unsigned short *payload);
+	int (*read)(unsigned short *fcode, unsigned short *len, unsigned short *payload);
+
+	void (*add_buffer)(void *buffer);
+	void (*del_buffer)(void *buffer);
+} t_fpp_ops;
+
+
+/* FPP API definitions */
+
+//0x0000 -> 0x00FF : RX module
+#define CMD_RX_ENABLE	0x0001
+#define CMD_RX_DISABLE	0x0002
+
+//0x0100 -> 0x01FF : Ethernet module
+
+//0x0200 -> 0x02FF : IPv4 module
+
+//0x0300 -> 0x03FF : QM module
+
+//0x0400 -> 0x04FF : Scheduler module
+
+//0x0500 -> 0x05FF : TX module
+#define CMD_TX_ENABLE	0x0501
+#define CMD_TX_DISABLE	0x0502
+
+#endif
+
