OK then, i'll try something simpler:
Is there a way to use a function defined inside a driver code, into other driver code? Because i want to map some VME windows, which will be used at driver initialization time, tried something out and got the following error:
Hope you can help me out, or at least have some ideas.
Best regards,
boyanov
Interesting deduction. Is that your final answer?
That's interesting.Why do you want to do map some VME windows which will be used at driver initialization time tried something out and got the following errorusr1developboyanovmvmepz01srcmyVMEmyVME so much? Interesting.What do you really want to ask me?
Who is your favorite Science Fiction author?
Hello,
I'm not sure whether this thread is in the right subforum, if it isn't please excuse me.
So, here's my question - right now I'm trying to port a Solaris device driver for a custom piece of hardware to Linux (2.6.15), and I'm having some troubles finding the proper corresponding... (3 Replies)
I tried to compile a socket programming code under SUN Solaris by using g++, i get the following errors:
Undefined first referenced
symbol in file
__xnet_connect /var/tmp//ccidZvCu.o
__xnet_socket ... (5 Replies)
Hi
I wish to encrypt some files in Linux Redhat server using DES and Encrpt functions but I am not able to find such fncs in Linux.
Please help. (0 Replies)
nmap is a network utility which gives u information about open ports on ur system. for eg
$ nmap 10.226.112.202
PORT STATE SERVICE
7/tcp open echo
13/tcp open daytime
22/tcp open ssh
23/tcp open telnet
37/tcp open time
1100/tcp open unknown
these open... (2 Replies)
Hello,
I need to write a perl script to find where functions is called in c files..
The script should scan the file and find out the function names and then search to see where they are called...
Lets for now assume all functions are internal.
I don't know where to start :(
... (4 Replies)
I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line
if
then... (8 Replies)
Hi,
I am looking for a generic find command that works on both Linux and Solaris.
I have the below command that works fine on Linux but fails on solaris.find /web/config -type f '(' -name '*.txt' -or -name '*.xml' -name '*.pro' ')' Fails on SunOS mysolaris 5.10 Generic_150400-61 sun4v sparc... (1 Reply)
I want to find c function definition with pattern with shell script by checking condition for each line:
data_type
functionname(param_list){
....
}
I knew cscope or ctag is usable for this task, but if there any ways to do without using them.
I am thinking of checking line condition... (3 Replies)
Discussion started by: cmdcmd
3 Replies
LEARN ABOUT OPENSOLARIS
ddi_dma_set_sbus64
ddi_dma_set_sbus64(9F) Kernel Functions for Drivers ddi_dma_set_sbus64(9F)NAME
ddi_dma_set_sbus64 - allow 64-bit transfers on SBus
SYNOPSIS
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_dma_set_sbus64(ddi_dma_handle_t handle, uint_t burstsizes);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
handle The handle filled in by a call to ddi_dma_alloc_handle(9F).
burstsizes The possible burst sizes the device's DMA engine can accept in 64-bit mode.
DESCRIPTION
ddi_dma_set_sbus64() informs the system that the device wishes to perform 64-bit data transfers on the SBus. The driver must first allocate
a DMA handle using ddi_dma_alloc_handle(9F) with a ddi_dma_attr(9S) structure describing the DMA attributes for a 32-bit transfer mode.
burstsizes describes the possible burst sizes the device's DMA engine can accept in 64-bit mode. It may be distinct from the burst sizes
for 32-bit mode set in the ddi_dma_attr(9S) structure. The system will activate 64-bit SBus transfers if the SBus supports them. Other-
wise, the SBus will operate in 32-bit mode.
After DMA resources have been allocated (see ddi_dma_addr_bind_handle(9F) or ddi_dma_buf_bind_handle(9F)), the driver should retrieve the
available burst sizes by calling ddi_dma_burstsizes(9F). This function will return the burst sizes in 64-bit mode if the system was able
to activate 64-bit transfers. Otherwise burst sizes will be returned in 32-bit mode.
RETURN VALUES
ddi_dma_set_sbus64() returns:
DDI_SUCCESS Successfully set the SBus to 64-bit mode.
DDI_FAILURE 64-bit mode could not be set.
CONTEXT
ddi_dma_set_sbus64() can be called from user, kernel, or interrupt context.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |SBus |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5), ddi_dma_addr_bind_handle(9F), ddi_dma_alloc_handle(9F), ddi_dma_buf_bind_handle(9F), ddi_dma_burstsizes(9F),
ddi_dma_attr(9S)NOTES
64-bit SBus mode is activated on a per SBus slot basis. If there are multiple SBus cards in one slot, they all must operate in 64-bit mode
or they all must operate in 32-bit mode.
SunOS 5.11 1 Jan 1997 ddi_dma_set_sbus64(9F)