gpiobus_if.m (98e0ffaefb0f241cda3a72395d3be04192ae0d47) | gpiobus_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 --- 35 unchanged lines hidden (view full) --- 44# Release the bus 45# 46METHOD void release_bus { 47 device_t busdev; 48 device_t dev; 49}; 50 51# | 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 --- 35 unchanged lines hidden (view full) --- 44# Release the bus 45# 46METHOD void release_bus { 47 device_t busdev; 48 device_t dev; 49}; 50 51# |
52# Set value of pin specifed by pin_num | 52# Set value of pin specified by pin_num |
53# 54METHOD int pin_set { 55 device_t dev; 56 device_t child; 57 uint32_t pin_num; 58 uint32_t pin_value; 59}; 60 61# | 53# 54METHOD int pin_set { 55 device_t dev; 56 device_t child; 57 uint32_t pin_num; 58 uint32_t pin_value; 59}; 60 61# |
62# Get value of pin specifed by pin_num | 62# Get value of pin specified by pin_num |
63# 64METHOD int pin_get { 65 device_t dev; 66 device_t child; 67 uint32_t pin_num; 68 uint32_t *pin_value; 69}; 70 71# | 63# 64METHOD int pin_get { 65 device_t dev; 66 device_t child; 67 uint32_t pin_num; 68 uint32_t *pin_value; 69}; 70 71# |
72# Toggle value of pin specifed by pin_num | 72# Toggle value of pin specified by pin_num |
73# 74METHOD int pin_toggle { 75 device_t dev; 76 device_t child; 77 uint32_t pin_num; 78}; 79 80# --- 46 unchanged lines hidden --- | 73# 74METHOD int pin_toggle { 75 device_t dev; 76 device_t child; 77 uint32_t pin_num; 78}; 79 80# --- 46 unchanged lines hidden --- |