1
/* @(#)scgsettarget.c 1.1 00/08/25 Copyright 2000 J. Schilling */
3
static char _sccsid[] =
4
"@(#)scgsettarget.c 1.1 00/08/25 Copyright 2000 J. Schilling";
8
* set target SCSI address
10
* This is the only place in libscg that is allowed to assign
11
* values to the scg address structure.
13
* Copyright (c) 2000 J. Schilling
16
* This program is free software; you can redistribute it and/or modify
17
* it under the terms of the GNU General Public License as published by
18
* the Free Software Foundation; either version 2, or (at your option)
21
* This program is distributed in the hope that it will be useful,
22
* but WITHOUT ANY WARRANTY; without even the implied warranty of
23
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
* GNU General Public License for more details.
26
* You should have received a copy of the GNU General Public License
27
* along with this program; see the file COPYING. If not, write to
28
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
35
#include <scg/scsitransp.h>
37
EXPORT int scg_settarget __PR((SCSI *scgp, int, int, int));
40
scg_settarget(scgp, busno, tgt, tlun)
48
if (scgp->ops != NULL)
49
fd = SCGO_FILENO(scgp, busno, tgt, tlun);
51
scg_scsibus(scgp) = busno;
52
scg_target(scgp) = tgt;