DELTA 274987 2000 1962 SVNVrt6XQ@imMarch 7, 2015_t *cfg" .Ft int .Fn gpio_pin_set_name "gpio_handle_t handle, gpio_pin_t pin, char *namename sets the name used to describe a pinENDREP DELTA 275396 0 27 SVNc  nuname(gpio_handle_t handle, gpio_pin_t pin, char *name) { struct gpio_pin gppin; if (name == NULL) return (-1); bzero(&gppin, sizeof(gppin)); gppin.gp_pin = pin; strlcpy(gppin.gp_name, name, GPIOMAXNAME); if (ioctl(handle, GPIOSETNAME, &gppin) < 0) return (-1)ENDREP DELTA 274987 5772 1350 SVNKl N}pin name. The pin number and pin name to be set are passed * as parameters. */ int gpio_pin_set_name(gpio_handle_t, gpio_pin_t, charENDREP DELTA 279622 0 48 SVNc65b&xd*Op\fWjE~uhtonx^T]o0}6 RFcNBh&Mb`K| N{MP %Ҟ>>>`AiREbdRFA)rieN np׶n_ ase}x "UD.qȥ^I!ڃJ/i ;'[zrϽGuI)'0'擿0% LZ.9 ѱENDREP DELTA 273917 1438 134 SVNR I GG # # Get the pin name # METHOD int pin_getname { device_t dev; uint32_t pin_num; char *name; }; # # Set the pin name # METHOD int pin_setname { device_t dev; uint32_t pin_num; const char *nameENDREP DELTA 279622 74 21 SVNJ8YYHRxpin_data { int mapped; /* pin is mapped/reserved. */ char *name; /* pin name. */ };struct gpiobus_pin_data *sc_pins; /* pin dataENDREP DELTA 274670 3773 413 SVN)E%$}{E7 jY$u4#include "gpiobusdevice_t bus;bus = GPIO_GET_BUS(sc->sc_pdev); if (bus == NULL) return (EINVAL);BUS_PIN_GETNAME(buscase GPIOSETNAME: bcopy(arg, &pin, sizeof(pin)); dprintf("set name on pin %d\n", pin.gp_pin); res = GPIOBUS_PIN_SETNAME(bus, pin.gp_pin, pin.gp_nameENDREP DELTA 261842 1653 3037 SVNO :9>H:yXnUI.OL}'JP}x^Yoo6m}[e8nnҢm A,i.[ww$EJ3)X&y;bu|.$oS䦭NjU|Li Z6R9dMtȈv U$ aC4pM6LXTԍ*#*rqMa>3P#UjPuO3d+̓Re$J0[./4&JV2O𪲨sa6E($a^o`BHLanH)zr2 &0עf%ՋK},p- y|/Xʁl)iAlNNM6ڝ_HSGs M w<#S_T]hV` {@Z",v$GOWA4&NV&!|v EZ[Od׵`iϑ!ⓞ6<*L LR6-AcvY5.O(2^^\D\272%9;=Xs]ƹ]+կD]*v)H>irbȑk.EIY)eK&~<ؗXbN5 "}o1僠U,o ~/-f;M#jeK6ATԔʵz:8J+4L71a##vjxruB։?y .ƶ 3: ])' ָF M>#|XUF7+:O~,+?vs?x׌8k#AF#VXa0W7=}g,/ŖIX91RDPUH55BF4.fMy9POWJ(qt6V,nD"3Đ{\su|8@I#bsq`>v3SJ= dMÀsVɎ , G.+⚹:B 3nrO9Eѹ]vRӁ@5s\w4Yck=GM0h p5v5J{p"ͧhINX>,V2dPI@mEJU p+]jR3A#>##:b%_buJ){s}, fo[?C`O鶼Bu/yfCdg֑N;0CByh^" 'Lj\W:)2"hueY$+#ô&N,7τ{䇃ne_harN݆5GQg&;q1R~wffӗ'/|եXegݸP"Z0zv ^a[ /6 4:\zߖXƲX86MuaX {HwXL5#A1:!;+%dmQ;`e 1@7jh@jpHi&PR%u E*SX=lpM!PlX]7BZ/ Eگ6Z FK 5G?