heci_interface.h revision 617e2443dfc17fe44fd44c0675d6aad2ffc9df42
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Part of Intel(R) Manageability Engine Interface Linux driver
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright (c) 2003 - 2008 Intel Corp.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Redistribution and use in source and binary forms, with or without
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * modification, are permitted provided that the following conditions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * 1. Redistributions of source code must retain the above copyright
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * notice, this list of conditions, and the following disclaimer,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * without modification.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * 2. Redistributions in binary form must reproduce at minimum a disclaimer
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * substantially similar to the "NO WARRANTY" disclaimer below
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * ("Disclaimer") and any redistribution must be conditioned upon
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * including a substantially similar Disclaimer requirement for further
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * binary redistribution.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * 3. Neither the names of the above-listed copyright holders nor the names
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * of any contributors may be used to endorse or promote products derived
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * from this software without specific prior written permission.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Alternatively, this software may be distributed under the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * GNU General Public License ("GPL") version 2 as published by the Free
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Software Foundation.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * NO WARRANTY
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * POSSIBILITY OF SUCH DAMAGES.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* IOCTL commands */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * heci interface function prototypes
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid heci_set_csr_register(struct iamt_heci_device *dev);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid heci_csr_enable_interrupts(struct iamt_heci_device *dev);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid heci_csr_disable_interrupts(struct iamt_heci_device *dev);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid heci_read_slots(struct iamt_heci_device *dev,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte unsigned char *buffer, unsigned long buffer_length);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint heci_write_message(struct iamt_heci_device *dev,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte unsigned char *write_buffer,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte unsigned long write_length);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint host_buffer_is_empty(struct iamt_heci_device *dev);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint32_t count_full_read_slots(struct iamt_heci_device *dev);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint32_t count_empty_write_slots(struct iamt_heci_device *dev);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevoid flow_ctrl_reduce(struct iamt_heci_device *dev,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint heci_send_flow_control(struct iamt_heci_device *dev,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint other_client_is_connecting(struct iamt_heci_device *dev,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _HECI_INTERFACE_H_ */