Ignore:
Timestamp:
2008-06-26T01:05:50+02:00 (8 years ago)
Author:
blogic
Message:

cleanup ifxmips and add support for both ttyS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ifxmips/files/include/asm-mips/mach-ifxmips/gpio.h

    r11573 r11578  
    11/* 
     2 *   include/asm-mips/mach-ifxmips/gpio.h  
     3 * 
    24 *   This program is free software; you can redistribute it and/or modify 
    35 *   it under the terms of the GNU General Public License as published by 
     
    1517 * 
    1618 *   Copyright (C) 2007 John Crispin <blogic@openwrt.org>  
     19 * 
    1720 */ 
     21 
    1822 
    1923#ifndef _IFXMIPS_GPIO_H_ 
     
    2327#include <asm/ifxmips/ifxmips_gpio.h> 
    2428 
    25 static inline int 
    26 gpio_direction_input(unsigned gpio) 
    27 { 
     29static inline int gpio_direction_input(unsigned gpio) { 
    2830        ifxmips_port_set_dir_in(0, gpio); 
    2931        return 0; 
    3032} 
    3133 
    32 static inline int 
    33 gpio_direction_output(unsigned gpio, int value) 
    34 { 
     34static inline int gpio_direction_output(unsigned gpio, int value) { 
    3535        ifxmips_port_set_dir_out(0, gpio); 
    3636        return 0; 
    3737} 
    3838 
    39 static inline int 
    40 gpio_get_value(unsigned gpio) 
    41 { 
     39static inline int gpio_get_value(unsigned gpio) { 
    4240        ifxmips_port_get_input(0, gpio); 
    4341        return 0; 
    4442} 
    4543 
    46 static inline void 
    47 gpio_set_value(unsigned gpio, int value) 
    48 { 
     44static inline void gpio_set_value(unsigned gpio, int value) { 
    4945        ifxmips_port_set_output(0, gpio); 
    5046} 
    5147 
    52 static inline int 
    53 gpio_request(unsigned gpio, const char *label) 
    54 { 
     48static inline int gpio_request(unsigned gpio, const char *label) { 
    5549        return 0; 
    5650} 
    5751 
    58 static inline void 
    59 gpio_free(unsigned gpio) 
    60 { 
     52static inline void gpio_free(unsigned gpio) { 
    6153} 
    6254 
    63 static inline int 
    64 gpio_to_irq(unsigned gpio) 
    65 { 
     55static inline int gpio_to_irq(unsigned gpio) { 
    6656        return 0; 
    6757} 
    6858 
    69 static inline int 
    70 irq_to_gpio(unsigned irq) 
    71 { 
     59static inline int irq_to_gpio(unsigned irq) { 
    7260        return 0; 
    7361} 
    7462 
    75 static inline int 
    76 gpio_cansleep(unsigned gpio) 
    77 { 
     63static inline int gpio_cansleep(unsigned gpio) { 
    7864        return 0; 
    7965} 
    8066 
    81 static inline int 
    82 gpio_get_value_cansleep(unsigned gpio) 
    83 { 
     67static inline int gpio_get_value_cansleep(unsigned gpio) { 
    8468        might_sleep(); 
    8569        return gpio_get_value(gpio); 
    8670} 
    8771 
    88 static inline void 
    89 gpio_set_value_cansleep(unsigned gpio, int value) 
    90 { 
     72static inline void gpio_set_value_cansleep(unsigned gpio, int value) { 
    9173        might_sleep(); 
    9274        gpio_set_value(gpio, value); 
    9375} 
     76 
    9477#endif 
     78 
Note: See TracChangeset for help on using the changeset viewer.