gpio_if.m (8fcbcc2d7435d069fa203edfc910c518cd1c6a2f) | gpio_if.m (04389c855e56d1715637fa43575ec13455a68b2e) |
---|---|
1#- 2# Copyright (c) 2009 Oleksandr Tymoshenko <gonzo@freebsd.org> 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 71 unchanged lines hidden (view full) --- 80# Get maximum pin number 81# 82METHOD int pin_max { 83 device_t dev; 84 int *maxpin; 85}; 86 87# | 1#- 2# Copyright (c) 2009 Oleksandr Tymoshenko <gonzo@freebsd.org> 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 71 unchanged lines hidden (view full) --- 80# Get maximum pin number 81# 82METHOD int pin_max { 83 device_t dev; 84 int *maxpin; 85}; 86 87# |
88# Set value of pin specifed by pin_num | 88# Set value of pin specified by pin_num |
89# 90METHOD int pin_set { 91 device_t dev; 92 uint32_t pin_num; 93 uint32_t pin_value; 94}; 95 96# | 89# 90METHOD int pin_set { 91 device_t dev; 92 uint32_t pin_num; 93 uint32_t pin_value; 94}; 95 96# |
97# Get value of pin specifed by pin_num | 97# Get value of pin specified by pin_num |
98# 99METHOD int pin_get { 100 device_t dev; 101 uint32_t pin_num; 102 uint32_t *pin_value; 103}; 104 105# | 98# 99METHOD int pin_get { 100 device_t dev; 101 uint32_t pin_num; 102 uint32_t *pin_value; 103}; 104 105# |
106# Toggle value of pin specifed by pin_num | 106# Toggle value of pin specified by pin_num |
107# 108METHOD int pin_toggle { 109 device_t dev; 110 uint32_t pin_num; 111}; 112 113# 114# Get pin capabilities --- 74 unchanged lines hidden --- | 107# 108METHOD int pin_toggle { 109 device_t dev; 110 uint32_t pin_num; 111}; 112 113# 114# Get pin capabilities --- 74 unchanged lines hidden --- |