On 26/03/05 12:09AM, Saif Abrar wrote:
> <...snip...>
> +/*
> + * Apply sticky-mask 's' to the reset-value 'v' and write to the address 'a'.
> + * RC-config space values and masks are LE.
> + * Method pnv_phb4_rc_config_read() returns BE, hence convert to LE.
> + * Compute new value in LE domain.
> + * New value computation using sticky-mask is in LE.
> + * Convert the computed value from LE to BE before writing back.
> + */
> +#define RC_CONFIG_STICKY_RESET(a, v, s) \
> +    (pci_set_word(conf + (a), bswap32( \
> +                     (bswap32(pci_get_word(conf + (a))) & (s)) | ((v) & 
> ~(s)))))

should be32_to_cpu be used here instead of bswap32 ?

- Aditya G

Reply via email to